if( status != JOYERR_NOERROR )
{
- joy->error = TRUE;
+ joy->error = GL_TRUE;
return;
}
}
fgWarning( "%s", joy->fname );
- joy->error = TRUE;
+ joy->error = GL_TRUE;
return;
}
if( status != JS_RETURN )
{
fgWarning( "%s", joy->fname );
- joy->error = TRUE;
+ joy->error = GL_TRUE;
return;
}
* I guess we have no axes at all
*/
default:
- joy->error = TRUE;
+ joy->error = GL_TRUE;
break;
}
joy->center[ 1 ] == 512.0f );
if( counter >= 100 )
- joy->error = TRUE;
+ joy->error = GL_TRUE;
# endif
for( i = 0; i < _JS_MAX_AXES; i++ )
break;
default:
fgJoystick->num_axes = 0;
- fgJoystick->error = TRUE;
+ fgJoystick->error = GL_TRUE;
break;
}
#else
fgError( "illegal attempt to deinitialize joystick device" );
#ifndef WIN32
- if( fgJoystick->error != TRUE )
+ if( ! fgJoystick->error )
close( fgJoystick->fd );
#endif