May I offer this patch which will help non-Linux users find their
joysticks' names.
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 ) ;