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
This commit is contained in:
puggles 2003-09-13 13:12:26 +00:00
parent 0cd9efa394
commit 738fa38ef5

View File

@ -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: * 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... * Yeah, that's it. Poll the joystick...