Make sure the joystick name gets printed
This commit is contained in:
parent
9bb782ce72
commit
a5bd132143
1 changed files with 0 additions and 2 deletions
|
@ -28,9 +28,7 @@ int main ( int, char ** )
|
||||||
{ useful[i] = ! ( js[i]->notWorking () );
|
{ useful[i] = ! ( js[i]->notWorking () );
|
||||||
if ( useful[i] ) {
|
if ( useful[i] ) {
|
||||||
t++;
|
t++;
|
||||||
#ifdef FG_PLIB_JOYSTICK_GETNAME
|
|
||||||
printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName() ) ;
|
printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName() ) ;
|
||||||
#endif
|
|
||||||
} else printf ( "Joystick %i not detected\n", i ) ;
|
} else printf ( "Joystick %i not detected\n", i ) ;
|
||||||
}
|
}
|
||||||
if ( t == 0 ) exit ( 1 ) ;
|
if ( t == 0 ) exit ( 1 ) ;
|
||||||
|
|
Loading…
Reference in a new issue