diff options
author | David Robillard <d@drobilla.net> | 2016-10-27 13:35:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-27 13:35:43 -0400 |
commit | be0df74bfc3aca82522080ad62f08320bb24ea4d (patch) | |
tree | 572b324bf2e87b01894cc5eb4e76d85e3a1686b7 /pugl/pugl_osx.m | |
parent | 5afaf317c6380c4d950473408a94116a46f333cf (diff) |
Fix mouse button numbers on OSX
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index e8ecc98..250e5d5 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -317,7 +317,7 @@ getModifiers(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + [event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); } @@ -336,7 +336,7 @@ getModifiers(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + [event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); [self updateTrackingAreas]; |