aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Robillard <d@drobilla.net>2016-10-27 13:35:43 -0400
committerGravatar David Robillard <d@drobilla.net>2016-10-27 13:35:43 -0400
commitbe0df74bfc3aca82522080ad62f08320bb24ea4d (patch)
tree572b324bf2e87b01894cc5eb4e76d85e3a1686b7
parent5afaf317c6380c4d950473408a94116a46f333cf (diff)
downloadcanvas.lv2-be0df74bfc3aca82522080ad62f08320bb24ea4d.zip
canvas.lv2-be0df74bfc3aca82522080ad62f08320bb24ea4d.tar.gz
canvas.lv2-be0df74bfc3aca82522080ad62f08320bb24ea4d.tar.bz2
canvas.lv2-be0df74bfc3aca82522080ad62f08320bb24ea4d.tar.xz
Fix mouse button numbers on OSX
-rw-r--r--pugl/pugl_osx.m4
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];