]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/joystick.cpp
fixed usage of LOWORD/HIWORD instead of GET_[XY]_LPARAM
[wxWidgets.git] / src / gtk1 / joystick.cpp
index 3b80491d4c5dbfe779579ca138b6dd62e29978b6..9994f9a66706398e713a9a0a383ace1ee992b46f 100644 (file)
 #pragma implementation "joystick.h"
 #endif
 
+#include <wx/joystick.h>
+
+#if wxUSE_JOYSTICK
+
 #include <linux/joystick.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -20,9 +24,9 @@
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <unistd.h>
+
 #include "wx/event.h"
 #include "wx/window.h"
-#include "wx/gtk/joystick.h"
 
 #define JOYSTICK_AXE_MAX 32767
 #define JOYSTICK_AXE_MIN -32767
@@ -354,4 +358,5 @@ bool wxJoystick::ReleaseCapture(void)
   m_polling = 0;
   return TRUE;
 }
+#endif  // wxUSE_JOYSTICK