diff options
author | David Robillard <d@drobilla.net> | 2012-04-29 02:53:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-29 02:53:47 +0000 |
commit | 4e6368d019e2543e6bf792f182486732d6f5a3f5 (patch) | |
tree | 4c2545feea12ebacfda281c9905a410820c55fe1 /pugl/pugl_win.cpp | |
parent | e346dc20fb1fcbc8f895d7c46e3ec54628d3db0c (diff) | |
download | pugl-4e6368d019e2543e6bf792f182486732d6f5a3f5.tar.gz pugl-4e6368d019e2543e6bf792f182486732d6f5a3f5.tar.bz2 pugl-4e6368d019e2543e6bf792f182486732d6f5a3f5.zip |
Proper key press and release support on X11.
Clearer mouse callback API.
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r-- | pugl/pugl_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index a27a2c5..50f42f0 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -104,10 +104,10 @@ puglDisplay(PuglWindow* win) } static void -processMouseEvent(PuglWindow* win, int button, bool down, LPARAM lParam) +processMouseEvent(PuglWindow* win, int button, bool press, LPARAM lParam) { if (win->mouseFunc) { - win->mouseFunc(win, button, down, + win->mouseFunc(win, button, press, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); } |