Patch from Julian Foad:
May I offer this patch which will help non-Linux users find their joysticks' names.
This commit is contained in:
parent
b2d8574b75
commit
0f3db24a90
1 changed files with 5 additions and 2 deletions
|
@ -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 ) ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue