From 1663d1628f42251bea0af5d00b91495a7e2fd8d7 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 27 May 1999 00:21:37 +0000 Subject: [PATCH] Force use of PLIB joystick routines. --- Simulator/Joystick/Makefile.am | 4 ++-- Simulator/Joystick/joystick.cxx | 11 +++++------ Simulator/Joystick/joystick.hxx | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Simulator/Joystick/Makefile.am b/Simulator/Joystick/Makefile.am index d5dd7e85d..f2b2f78c9 100644 --- a/Simulator/Joystick/Makefile.am +++ b/Simulator/Joystick/Makefile.am @@ -1,5 +1,5 @@ -if ENABLE_LINUX_JOYSTICK -DEFS += -DENABLE_LINUX_JOYSTICK +if ENABLE_PLIB_JOYSTICK +DEFS += -DENABLE_PLIB_JOYSTICK else DEFS += -DENABLE_GLUT_JOYSTICK endif diff --git a/Simulator/Joystick/joystick.cxx b/Simulator/Joystick/joystick.cxx index 7e8f8dbe2..8031c9f92 100644 --- a/Simulator/Joystick/joystick.cxx +++ b/Simulator/Joystick/joystick.cxx @@ -32,7 +32,7 @@ #include #include -#if defined( ENABLE_LINUX_JOYSTICK ) +#if defined( ENABLE_PLIB_JOYSTICK ) # include #elif defined( ENABLE_GLUT_JOYSTICK ) # include @@ -43,7 +43,7 @@ #include "joystick.hxx" -#if defined( ENABLE_LINUX_JOYSTICK ) +#if defined( ENABLE_PLIB_JOYSTICK ) // joystick classes static jsJoystick *js0; @@ -119,7 +119,7 @@ int fgJoystickInit( void ) { 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 ); @@ -171,7 +171,7 @@ int fgJoystickInit( void ) { } -#if defined( ENABLE_LINUX_JOYSTICK ) +#if defined( ENABLE_PLIB_JOYSTICK ) // update the control parameters based on joystick intput int fgJoystickRead( void ) { @@ -192,6 +192,5 @@ int fgJoystickRead( void ) { return 1; } -#endif // ENABLE_LINUX_JOYSTICK - +#endif // ENABLE_PLIB_JOYSTICK diff --git a/Simulator/Joystick/joystick.hxx b/Simulator/Joystick/joystick.hxx index aa5e6f9a2..aa8e2e639 100644 --- a/Simulator/Joystick/joystick.hxx +++ b/Simulator/Joystick/joystick.hxx @@ -33,10 +33,10 @@ // 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 -- 2.39.5