From: Richard Rauch Date: Sun, 26 Oct 2003 05:44:07 +0000 (+0000) Subject: Committed change from Nigel to fix the joystick bug. (The joystick X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=ba533ec8a2fd1c4aece83055021708c356753910;p=freeglut Committed change from Nigel to fix the joystick bug. (The joystick code was not setting the GLUT window prior to calling callbacks.) Please verify. If so, this closes out, I think, the latter half of that bug report, so anyone with the means to modify/close bug reports should do so upon verification of the fix. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@242 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 82fc444..a786b4f 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -571,6 +571,7 @@ void fgJoystickPollWindow( SFG_Window* window ) /* * Execute the freeglut joystick callback now */ + fgSetWindow (window); window->Callbacks.Joystick( buttons, (int) (axes[ 0 ] * 1000.0f),