aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-29 02:53:47 +0000
committerDavid Robillard <d@drobilla.net>2012-04-29 02:53:47 +0000
commit4e6368d019e2543e6bf792f182486732d6f5a3f5 (patch)
tree4c2545feea12ebacfda281c9905a410820c55fe1 /pugl/pugl_win.cpp
parente346dc20fb1fcbc8f895d7c46e3ec54628d3db0c (diff)
downloadpugl-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.cpp4
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));
}