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: https://svn.code.sf.net/p/freeglut/code/trunk@242 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
rkrolib 2003-10-26 05:44:07 +00:00
parent 9464f61d1f
commit 1ea15ad9e1

View 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),