Hi,
I just had this idea for a possible simple (?) usability enhancement in Pd's editor: I think it could be cool to have a key binding for the (usually) left (button0) mouseclick.
Assuming the key "c" would be used: Pressing "c" would toggle "mouse down". Pressing the key again would generate a "mouse up". Of course in run-mode and when actually writing text, this should be deactivated.
Anyway patching would be possible by just pointing the mouse over an outlet, pressing "c" once, moving the mouse over to an outlet and pressing "c" again to make the connection while never using or holding the actual mouse button, thus reducing stress on the (usually) right hand.
I actually would like to test this. Does someone know how to set this up (maybe with of some key->mouse translation tools) on X-Windows?
Ciao
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
I actually would like to test this. Does someone know how to set this up (maybe with of some key->mouse translation tools) on X-Windows?
Okay, found that: Just use "xkbset m" to switch on "MouseKeys" mode on the keypad. To map for example the left Windows-key to "Pointer_Button1" you need to find the keycode for it with "xev", then use that with xmodmap. For my keyboard the code is "115". Then these two commands will make the windows key be mouse button 1:
xmodmap -e "keycode 115 = Pointer_Button1" xkbset m
And this will disable it again:
xmodmap -e "keycode 115 = Super_L" xkbset -m
Very cool, thanks for listening to my ramblings ...
Ciao
Also, depending on what you want to do, you can send [mouse( and [mouseup( messages to the canvas.
.hc
On Jun 14, 2007, at 6:00 AM, Frank Barknecht wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
I actually would like to test this. Does someone know how to set this up (maybe with of some key->mouse translation tools) on X-Windows?
Okay, found that: Just use "xkbset m" to switch on "MouseKeys" mode on the keypad. To map for example the left Windows-key to "Pointer_Button1" you need to find the keycode for it with "xev", then use that with xmodmap. For my keyboard the code is "115". Then these two commands will make the windows key be mouse button 1:
xmodmap -e "keycode 115 = Pointer_Button1" xkbset m
And this will disable it again:
xmodmap -e "keycode 115 = Super_L" xkbset -m
Very cool, thanks for listening to my ramblings ...
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Whoa that is an awesome wrist-saver!
~Kyle
On 6/14/07, Frank Barknecht fbar@footils.org wrote:
Hi,
I just had this idea for a possible simple (?) usability enhancement in Pd's editor: I think it could be cool to have a key binding for the (usually) left (button0) mouseclick.
Assuming the key "c" would be used: Pressing "c" would toggle "mouse down". Pressing the key again would generate a "mouse up". Of course in run-mode and when actually writing text, this should be deactivated.
Anyway patching would be possible by just pointing the mouse over an outlet, pressing "c" once, moving the mouse over to an outlet and pressing "c" again to make the connection while never using or holding the actual mouse button, thus reducing stress on the (usually) right hand.
I actually would like to test this. Does someone know how to set this up (maybe with of some key->mouse translation tools) on X-Windows?
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
That sounds like an interesting idea. I think the way to do it is to look into Tcl key bindings. They are not that hard. Basically, you just have to find the function that starts the connection, and makes the connection, then bind the "c" key to it. In the pd.tk/u_main.tk, check out the "bind" statements.
.hc
On Jun 17, 2007, at 3:55 PM, Kyle Klipowicz wrote:
Whoa that is an awesome wrist-saver!
~Kyle
On 6/14/07, Frank Barknecht fbar@footils.org wrote:
Hi,
I just had this idea for a possible simple (?) usability enhancement in Pd's editor: I think it could be cool to have a key binding for the (usually) left (button0) mouseclick.
Assuming the key "c" would be used: Pressing "c" would toggle "mouse down". Pressing the key again would generate a "mouse up". Of course in run-mode and when actually writing text, this should be deactivated.
Anyway patching would be possible by just pointing the mouse over an outlet, pressing "c" once, moving the mouse over to an outlet and pressing "c" again to make the connection while never using or holding the actual mouse button, thus reducing stress on the (usually) right hand.
I actually would like to test this. Does someone know how to set this up (maybe with of some key->mouse translation tools) on X-Windows?
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
--
---- -----
http://perhapsidid.wordpress.com
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson