X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58c837a4e67c0996134cc0947691dc09c5f26687..fa03793d3bf2b76a753483ddf12abfd35eebe7a0:/src/gtk/joystick.cpp?ds=sidebyside diff --git a/src/gtk/joystick.cpp b/src/gtk/joystick.cpp index 3b80491d4c..334fefee34 100644 --- a/src/gtk/joystick.cpp +++ b/src/gtk/joystick.cpp @@ -13,6 +13,12 @@ #pragma implementation "joystick.h" #endif +#include "wx/defs.h" + +#if wxUSE_JOYSTICK + +#include "wx/joystick.h" + #include <linux/joystick.h> #include <sys/types.h> #include <sys/stat.h> @@ -20,9 +26,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 +360,5 @@ bool wxJoystick::ReleaseCapture(void) m_polling = 0; return TRUE; } +#endif // wxUSE_JOYSTICK