-if ENABLE_LINUX_JOYSTICK
-DEFS += -DENABLE_LINUX_JOYSTICK
+if ENABLE_PLIB_JOYSTICK
+DEFS += -DENABLE_PLIB_JOYSTICK
else
DEFS += -DENABLE_GLUT_JOYSTICK
endif
#include <Aircraft/aircraft.hxx>
#include <Debug/logstream.hxx>
-#if defined( ENABLE_LINUX_JOYSTICK )
+#if defined( ENABLE_PLIB_JOYSTICK )
# include <plib/js.h>
#elif defined( ENABLE_GLUT_JOYSTICK )
# include <GL/glut.h>
#include "joystick.hxx"
-#if defined( ENABLE_LINUX_JOYSTICK )
+#if defined( ENABLE_PLIB_JOYSTICK )
// joystick classes
static jsJoystick *js0;
FG_LOG( FG_INPUT, FG_INFO, "Initializing joystick" );
-#if defined( ENABLE_LINUX_JOYSTICK )
+#if defined( ENABLE_PLIB_JOYSTICK )
js0 = new jsJoystick ( 0 );
js1 = new jsJoystick ( 1 );
}
-#if defined( ENABLE_LINUX_JOYSTICK )
+#if defined( ENABLE_PLIB_JOYSTICK )
// update the control parameters based on joystick intput
int fgJoystickRead( void ) {
return 1;
}
-#endif // ENABLE_LINUX_JOYSTICK
-
+#endif // ENABLE_PLIB_JOYSTICK
// Initialize the joystick(s)
int fgJoystickInit( void );
-#if defined( ENABLE_LINUX_JOYSTICK )
+#if defined( ENABLE_PLIB_JOYSTICK )
// update the control parameters based on joystick intput
int fgJoystickRead( void );
-#endif // ENABLE_LINUX_JOYSTICK
+#endif // ENABLE_PLIB_JOYSTICK
#endif // _JOYSTICK_HXX