jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Button for changing stylus click into right click behavior #400

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For console ports like Caanoo: a joystick button that changes "click" from 
stylus (interpreted as a left mouse click) into a "right-click".

Useful for drawing AND many GUI buttons that have different behaviors on left 
and right clicks.

The used button won't be usable as a normal shortcut. It can be a modifier 
(hold this button + push another button). Not "shift", because its default 
behavior would constrain lines in 45° angles etc.

This change can also be useful for PC users who draw with a tablet: Wacom 
Graphire tablet has top buttons that can be configured as Ctrl, Alt etc. I've 
just checked, they are successfully understood by Grafx2. So if "Control" is 
the modifier, you can either hold the pad key, or the right or left control 
keys from keyboard: Same config is fine for left- or right-handed people, no 
matter how your desktop is arranged.

Original issue reported on code.google.com by yrizoud on 9 Nov 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Started in r1691.
I'm very tempted to make this active, with Control as the defaults, for 2.3.

Original comment by yrizoud on 22 Jan 2011 at 5:16

GoogleCodeExporter commented 9 years ago
Done in 1693.
For computer versions, Control is now the key, by default (but can be 
disabled). I've tested with a Wacom tablet, it looks very handy because the 
tablet itself has buttons, and you can associate any with the "Control" key. 
Much easier to hold that button with the left hand and draw naturally, than to 
click the extra buttons on the stylus itself.

Untested on actual consoles.

Original comment by yrizoud on 23 Jan 2011 at 4:42

GoogleCodeExporter commented 9 years ago
I was about to make a request for this feature, but then I realized it's 
already done. ..now that's what I call fast ;) I've tested it and really like 
it. The only thing I noticed was that the config doesn't get saved, it just 
falls back to "none". Actually it's missing entirely from the grafx2.ini but 
does get read correctly if added manually to it, though saving the config 
erases the entry.

Original comment by sm4...@yahoo.com on 24 Jan 2011 at 8:46

GoogleCodeExporter commented 9 years ago
Oops, I had forgotten to upload one file. Now it's there, in rev. 1696

Original comment by yrizoud on 24 Jan 2011 at 9:21