X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltrackball.h;h=ba9e574691e76f46f1eea03d31db976e71d62d39;hp=72a4a62765a392d084ca78363cb2dc6c7c37f2cd;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/gltrackball.h b/hacks/glx/gltrackball.h index 72a4a627..ba9e5746 100644 --- a/hacks/glx/gltrackball.h +++ b/hacks/glx/gltrackball.h @@ -1,4 +1,4 @@ -/* gltrackball, Copyright (c) 2002-2014 Jamie Zawinski +/* gltrackball, Copyright (c) 2002-2017 Jamie Zawinski * GL-flavored wrapper for trackball.c * * Permission to use, copy, modify, distribute, and sell this software and its @@ -55,9 +55,10 @@ void gltrackball_mousewheel (trackball_state *ts, */ extern void gltrackball_get_quaternion (trackball_state *ts, float q[4]); -/* Reset the trackball to the default unrotated state. +/* Reset the trackball to the default unrotated state, + plus an optional initial rotation. */ -extern void gltrackball_reset (trackball_state *ts); +extern void gltrackball_reset (trackball_state *ts, float x, float y); /* A utility function for event-handler functions: Handles the various motion and click events related to trackballs.