From ba533ec8a2fd1c4aece83055021708c356753910 Mon Sep 17 00:00:00 2001 From: Richard Rauch 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@242 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_joystick.c | 1 + 1 file changed, 1 insertion(+) 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), -- 1.7.10.4