Committed change from Nigel to fix the joystick bug. (The joystick
authorRichard Rauch <rkr@olib.org>
Sun, 26 Oct 2003 05:44:07 +0000 (05:44 +0000)
committerRichard Rauch <rkr@olib.org>
Sun, 26 Oct 2003 05:44:07 +0000 (05:44 +0000)
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

src/freeglut_joystick.c

index 82fc444..a786b4f 100644 (file)
@@ -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),