diff options
author | David Robillard <d@drobilla.net> | 2016-08-31 18:11:48 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-31 18:11:48 -0400 |
commit | 156d9f03f26b4dd85dc75f652fb370b07bc2dab7 (patch) | |
tree | 3b27501b42cd0ba4d16bbf508acbebe2c963bffa /pugl/pugl_osx.m | |
parent | 80510efead3512766d798d29fbfb66ea5646a249 (diff) | |
download | pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.tar.gz pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.tar.bz2 pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.zip |
Replace send_event with extensible flags
This is currently functionally equivalent, but taking up space in the
event struct for a single bool which could be used for 32 flags for any
number of things that might show up in the future seems like a very bad
idea.
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index 1d9e408..7888c6c 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -182,7 +182,7 @@ puglDisplay(PuglView* view) const PuglEventConfigure ev = { PUGL_CONFIGURE, puglview, - false, + 0, bounds.origin.x, bounds.origin.y, bounds.size.width, @@ -276,7 +276,7 @@ getModifiers(PuglView* view, NSEvent* ev) const PuglEventMotion ev = { PUGL_MOTION_NOTIFY, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, @@ -306,7 +306,7 @@ getModifiers(PuglView* view, NSEvent* ev) const PuglEventButton ev = { PUGL_BUTTON_PRESS, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, @@ -325,7 +325,7 @@ getModifiers(PuglView* view, NSEvent* ev) const PuglEventButton ev = { PUGL_BUTTON_RELEASE, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, @@ -357,7 +357,7 @@ getModifiers(PuglView* view, NSEvent* ev) const PuglEventScroll ev = { PUGL_SCROLL, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, @@ -384,7 +384,7 @@ getModifiers(PuglView* view, NSEvent* ev) PuglEventKey ev = { PUGL_KEY_PRESS, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, @@ -410,7 +410,7 @@ getModifiers(PuglView* view, NSEvent* ev) const PuglEventKey ev = { PUGL_KEY_RELEASE, puglview, - false, + 0, [event timestamp], wloc.x, puglview->height - wloc.y, |