1
0
Fork 0

Make sure the joystick name gets printed

This commit is contained in:
ehofman 2003-09-16 08:25:16 +00:00
parent 9bb782ce72
commit a5bd132143

View file

@ -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 ) ;