]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/js_demo.cxx
Initial commit of the new sound system, expect more updates to follow
[flightgear.git] / src / Input / js_demo.cxx
index cdce31427a676ab684411a1394a2d3377fa72d31..189dd3d239f903b87892d3d6b3cdb40cec6f91c7 100644 (file)
@@ -17,6 +17,8 @@ int main ( int, char ** )
   float      *ax[Z] ;
   int i, j, t, useful[Z];
 
+  jsInit();
+
   for ( i = 0; i < Z; i++ )
       js[i] = new jsJoystick ( i ) ;
 
@@ -28,9 +30,7 @@ int main ( int, char ** )
   { useful[i] = ! ( js[i]->notWorking () );
     if ( useful[i] ) {
          t++;
-#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 ) ;