projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz
[xscreensaver]
/
hacks
/
glx
/
gltrackball.h
diff --git
a/hacks/glx/gltrackball.h
b/hacks/glx/gltrackball.h
index 3d8ef667bca1a3bd9948308f7ad7f5faafa43b24..a56888409100dfc69f4c448e0fe0e44bbe0273ac 100644
(file)
--- a/
hacks/glx/gltrackball.h
+++ b/
hacks/glx/gltrackball.h
@@
-1,4
+1,4
@@
-/* gltrackball, Copyright (c) 2002
, 2005
Jamie Zawinski <jwz@jwz.org>
+/* gltrackball, Copyright (c) 2002
-2008
Jamie Zawinski <jwz@jwz.org>
* GL-flavored wrapper for trackball.c
*
* Permission to use, copy, modify, distribute, and sell this software and its
* GL-flavored wrapper for trackball.c
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@
-40,10
+40,16
@@
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.
/* 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,
*/
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.
+ */
+extern void gltrackball_get_quaternion (trackball_state *ts, float q[4]);
#endif /* __GLTRACKBALL_H__ */
#endif /* __GLTRACKBALL_H__ */