]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/js_demo.cxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Input / js_demo.cxx
index 904a4097d02eda65fca96f1a4c40b2166f899e3e..cdce31427a676ab684411a1394a2d3377fa72d31 100644 (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 ) ;