X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltrackball.h;h=3d8ef667bca1a3bd9948308f7ad7f5faafa43b24;hp=fbe2efddc1052d3362eb10480128448883092d62;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hpb=bc7b7a8eb122206d239ec0e693676bcce31be1aa diff --git a/hacks/glx/gltrackball.h b/hacks/glx/gltrackball.h index fbe2efdd..3d8ef667 100644 --- a/hacks/glx/gltrackball.h +++ b/hacks/glx/gltrackball.h @@ -1,4 +1,4 @@ -/* gltrackball, Copyright (c) 2002 Jamie Zawinski +/* gltrackball, Copyright (c) 2002, 2005 Jamie Zawinski * GL-flavored wrapper for trackball.c * * Permission to use, copy, modify, distribute, and sell this software and its @@ -37,5 +37,13 @@ extern void gltrackball_track (trackball_state *, int x, int y, int w, int h); */ extern void gltrackball_rotate (trackball_state *); +/* Call this when a mouse-wheel click is detected. + Clicks act like horizontal or vertical drags. + Percent is the length of the drag as a percentage of the screen size. + Button is 'Button4' or 'Button5'. + */ +void gltrackball_mousewheel (trackball_state *ts, + int button, int percent, int horizontal_p); + #endif /* __GLTRACKBALL_H__ */