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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue