Applied tthierry's patch to fix compiling on FreeBSD.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@85 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
24b7f6fc0c
commit
80f65c1d51
@ -413,7 +413,7 @@ static void fghJoystickOpen( SFG_Joystick* joy )
|
|||||||
if( joy->error )
|
if( joy->error )
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
sprintf( joyfname, "%s/.joy%drc", g_getenv( "HOME" ), id );
|
sprintf( joyfname, "%s/.joy%drc", g_getenv( "HOME" ), joy->id );
|
||||||
|
|
||||||
joyfile = fopen( joyfname, "r" );
|
joyfile = fopen( joyfname, "r" );
|
||||||
joy->error = (joyfile == NULL);
|
joy->error = (joyfile == NULL);
|
||||||
@ -434,8 +434,8 @@ static void fghJoystickOpen( SFG_Joystick* joy )
|
|||||||
|
|
||||||
for( i=0 ; i<_JS_MAX_AXES ; i++ )
|
for( i=0 ; i<_JS_MAX_AXES ; i++ )
|
||||||
{
|
{
|
||||||
dead_band[ i ] = 0.0f;
|
joy->dead_band[ i ] = 0.0f;
|
||||||
saturate [ i ] = 1.0f;
|
joy->saturate [ i ] = 1.0f;
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user