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:
parent
e5649d1101
commit
556030b6b5
@ -408,7 +408,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
# ifdef __FreeBSD__
|
# ifdef __FreeBSD__
|
||||||
fghJoystickRawRead( buttons, axes );
|
fghJoystickRawRead(joy, buttons, axes );
|
||||||
joy->error = axes[ 0 ] < -1000000000.0f;
|
joy->error = axes[ 0 ] < -1000000000.0f;
|
||||||
if( joy->error )
|
if( joy->error )
|
||||||
return ;
|
return ;
|
||||||
@ -462,7 +462,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
fghJoystickRawRead( joy, NULL, joy->center )
|
fghJoystickRawRead( joy, NULL, joy->center );
|
||||||
counter++;
|
counter++;
|
||||||
} while( !joy->error && counter < 100 && joy->center[ 0 ] == 512.0f && joy->center[ 1 ] == 512.0f );
|
} while( !joy->error && counter < 100 && joy->center[ 0 ] == 512.0f && joy->center[ 1 ] == 512.0f );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user