X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltrackball.h;h=a56888409100dfc69f4c448e0fe0e44bbe0273ac;hp=966db04a688a8a8f469a2112b416119d76641351;hb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;hpb=0d6b320def9180cf907ceaed56b23a972a11b757 diff --git a/hacks/glx/gltrackball.h b/hacks/glx/gltrackball.h index 966db04a..a5688840 100644 --- a/hacks/glx/gltrackball.h +++ b/hacks/glx/gltrackball.h @@ -1,4 +1,4 @@ -/* gltrackball, Copyright (c) 2002, 2005 Jamie Zawinski +/* gltrackball, Copyright (c) 2002-2008 Jamie Zawinski * GL-flavored wrapper for trackball.c * * Permission to use, copy, modify, distribute, and sell this software and its @@ -40,10 +40,12 @@ 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'. + Button is 'Button4' or 'Button5' (for the vertical wheel) + or 'Button5' or 'Button6' (for the horizontal wheel). + If `flip_p' is true, swap the horizontal and vertical axes. */ void gltrackball_mousewheel (trackball_state *ts, - int button, int percent, int horizontal_p); + int button, int percent, int flip_p); /* Return the quaternion encapsulated by the trackball state. */