From d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2012 06:08:19 +0000 Subject: Scroll API. --- pugl/pugl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pugl/pugl.h') diff --git a/pugl/pugl.h b/pugl/pugl.h index a764620..f173525 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -55,6 +55,7 @@ typedef void (*PuglMouseFunc)(PuglWindow* handle, int button, bool down, int x, int y); typedef void (*PuglReshapeFunc)(PuglWindow* handle, int width, int height); +typedef void (*PuglScrollFunc)(PuglWindow* handle, int dx, int dy); /** Create a new GL window. @@ -119,6 +120,12 @@ puglSetMotionFunc(PuglWindow* window, PuglMotionFunc motionFunc); void puglSetMouseFunc(PuglWindow* window, PuglMouseFunc mouseFunc); +/** + Set the function to call on scroll events. +*/ +void +puglSetScrollFunc(PuglWindow* window, PuglScrollFunc scrollFunc); + /** Set the function to call when the window size changes. */ -- cgit v1.2.3