Oops, missed the fghJoystickRawRead() fix for FreeBSD.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@87 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dheyse 2003-06-19 20:51:48 +00:00
parent e5649d1101
commit 556030b6b5

View File

@ -408,7 +408,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
return;
# ifdef __FreeBSD__
fghJoystickRawRead( buttons, axes );
fghJoystickRawRead(joy, buttons, axes );
joy->error = axes[ 0 ] < -1000000000.0f;
if( joy->error )
return ;
@ -462,7 +462,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
do
{
fghJoystickRawRead( joy, NULL, joy->center )
fghJoystickRawRead( joy, NULL, joy->center );
counter++;
} while( !joy->error && counter < 100 && joy->center[ 0 ] == 512.0f && joy->center[ 1 ] == 512.0f );