From cbf7110c0f1012157fb524e89a842984d5b1e538 Mon Sep 17 00:00:00 2001 From: puggles Date: Thu, 26 May 2005 02:07:14 +0000 Subject: [PATCH] Fix joysticks so they are polled by their timer correctly. (Dan Torop) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@624 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 5cb91ad..6d70b8a 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/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