aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-27 13:35:43 -0400
committerDavid Robillard <d@drobilla.net>2016-10-27 13:35:43 -0400
commitbe0df74bfc3aca82522080ad62f08320bb24ea4d (patch)
tree572b324bf2e87b01894cc5eb4e76d85e3a1686b7
parent5afaf317c6380c4d950473408a94116a46f333cf (diff)
downloadpugl-be0df74bfc3aca82522080ad62f08320bb24ea4d.tar.gz
pugl-be0df74bfc3aca82522080ad62f08320bb24ea4d.tar.bz2
pugl-be0df74bfc3aca82522080ad62f08320bb24ea4d.zip
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];