From 1ea15ad9e1787aa441eb1a3f54eaded7cc5950b0 Mon Sep 17 00:00:00 2001 From: rkrolib Date: Sun, 26 Oct 2003 05:44:07 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/freeglut_joystick.c | 1 + 1 file changed, 1 insertion(+) diff --git a/freeglut/freeglut/src/freeglut_joystick.c b/freeglut/freeglut/src/freeglut_joystick.c index 82fc444..a786b4f 100644 --- a/freeglut/freeglut/src/freeglut_joystick.c +++ b/freeglut/freeglut/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),