From: J.C. Jones Date: Thu, 26 May 2005 02:07:14 +0000 (+0000) Subject: Fix joysticks so they are polled by their timer correctly. (Dan Torop) X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=7906d486682043c1499cd781829f15d5290e3c9c;p=freeglut Fix joysticks so they are polled by their timer correctly. (Dan Torop) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@624 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 5cb91ad..6d70b8a 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -458,7 +458,7 @@ static void fghSleepForEvents( void ) msec = fghNextTimer( ); /* XXX Use GLUT timers for joysticks... */ /* XXX Dumb; forces granularity to .01sec */ - if( fghHaveJoystick( ) && ( msec < 10 ) ) + if( fghHaveJoystick( ) && ( msec > 10 ) ) msec = 10; #if TARGET_HOST_UNIX_X11