From d9732fbc106a6ac228912078888fbac65e78d26d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2012 18:10:46 +0000 Subject: Scroll support on Windows. --- pugl_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl_test.c') diff --git a/pugl_test.c b/pugl_test.c index 57b9e5e..05efa61 100644 --- a/pugl_test.c +++ b/pugl_test.c @@ -110,9 +110,9 @@ onMouse(PuglWindow* win, int button, bool press, int x, int y) } static void -onScroll(PuglWindow* win, int dx, int dy) +onScroll(PuglWindow* win, float dx, float dy) { - fprintf(stderr, "Scroll %d %d\n", dx, dy); + fprintf(stderr, "Scroll %f %f\n", dx, dy); dist += dy / 4.0f; puglPostRedisplay(win); } -- cgit v1.2.3