]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/js_demo.cxx
TACAN improvements.
[flightgear.git] / src / Input / js_demo.cxx
index 448cecc2c3652034e615204cbb5fe3ab872225bf..ee2b32e3011548a7dacbbd081f7df33ac08ceda8 100644 (file)
@@ -2,12 +2,12 @@
 #  include <config.h>
 #endif
 
-#ifdef _WIN32
-#include <windows.h>
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>                     
 #endif
 
 #include <string.h>            // plib/js.h should really include this !!!!!!
-#include "Input/FGjs.hxx"
+#include <plib/js.h>
 
 #define Z 8
 
@@ -30,7 +30,7 @@ int main ( int, char ** )
   { useful[i] = ! ( js[i]->notWorking () );
     if ( useful[i] ) {
          t++;
-         printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName().c_str() ) ;
+         printf ( "Joystick %i: \"%s\"\n", i, js[i]->getName() ) ;
     } else printf ( "Joystick %i not detected\n", i ) ;
   }
   if ( t == 0 ) exit ( 1 ) ;