devdraw: make ctrl generate 1-click while mouse down (#119)
This makes 2-1 chords possible with touchpad on a mac laptop.
This commit is contained in:
parent
931c590611
commit
a9e66ffa4e
@ -927,6 +927,8 @@ getkeyboard(NSEvent *e)
|
||||
case NSFlagsChanged:
|
||||
if(in.mbuttons || in.kbuttons){
|
||||
in.kbuttons = 0;
|
||||
if(m & NSControlKeyMask)
|
||||
in.kbuttons |= 1;
|
||||
if(m & NSAlternateKeyMask)
|
||||
in.kbuttons |= 2;
|
||||
if(m & NSCommandKeyMask)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user