1
0
Fork 0

Patch from Julian Foad:

May I offer this patch which will help non-Linux users find their
joysticks' names.
This commit is contained in:
david 2002-07-06 18:00:34 +00:00
parent b2d8574b75
commit 0f3db24a90

View file

@ -26,9 +26,12 @@ int main ( int, char ** )
t = 0;
for ( i = 0; i < Z; i++ )
{ useful[i] = ! ( js[i]->notWorking () );
if ( useful[i] )
if ( useful[i] ) {
t++;
else printf ( "Joystick %i not detected\n", i ) ;
#ifdef FG_PLIB_JOYSTICK_GETNAME
printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName() ) ;
#endif
} else printf ( "Joystick %i not detected\n", i ) ;
}
if ( t == 0 ) exit ( 1 ) ;