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
This commit is contained in:
parent
f96be5c547
commit
cbf7110c0f
@ -458,7 +458,7 @@ static void fghSleepForEvents( void )
|
|||||||
msec = fghNextTimer( );
|
msec = fghNextTimer( );
|
||||||
/* XXX Use GLUT timers for joysticks... */
|
/* XXX Use GLUT timers for joysticks... */
|
||||||
/* XXX Dumb; forces granularity to .01sec */
|
/* XXX Dumb; forces granularity to .01sec */
|
||||||
if( fghHaveJoystick( ) && ( msec < 10 ) )
|
if( fghHaveJoystick( ) && ( msec > 10 ) )
|
||||||
msec = 10;
|
msec = 10;
|
||||||
|
|
||||||
#if TARGET_HOST_UNIX_X11
|
#if TARGET_HOST_UNIX_X11
|
||||||
|
Reference in New Issue
Block a user