From 738fa38ef5889931b0cd5c16626ed0516755e86f Mon Sep 17 00:00:00 2001 From: puggles Date: Sat, 13 Sep 2003 13:12:26 +0000 Subject: [PATCH] Nigel Stewart's joystick fix (for hopefully all platforms), SourceForge bug 805481 git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@186 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index fafb503..64c7884 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -265,7 +265,7 @@ static void fghcbCheckJoystickPolls( SFG_Window *window, SFG_Enumerator *enumera /* * Check if actually need to do the poll for the currently enumerated window: */ - if( window->State.JoystickLastPoll + window->State.JoystickPollRate >= checkTime ) + if( window->State.JoystickLastPoll + window->State.JoystickPollRate <= checkTime ) { /* * Yeah, that's it. Poll the joystick...