X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101ceb40b1d730118a1398a9a7efb4cdf529304e..e7300ec6d9ebbd1cfa2fcf12c0ce6e5aee85a152:/src/gtk/joystick.cpp diff --git a/src/gtk/joystick.cpp b/src/gtk/joystick.cpp index e783f1276d..eaf094acdf 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 #include #include @@ -20,9 +26,9 @@ #include #include #include + #include "wx/event.h" #include "wx/window.h" -#include "wx/gtk/joystick.h" #define JOYSTICK_AXE_MAX 32767 #define JOYSTICK_AXE_MIN -32767 @@ -54,7 +60,6 @@ void *wxJoystick::Entry(void) struct timeval time_out = {0, 0}; FD_ZERO(&read_fds); - DeferDestroy(TRUE); while (1) { TestDestroy(); @@ -202,7 +207,7 @@ int wxJoystick::GetProductId(void) const wxString wxJoystick::GetProductName(void) const { - return ""; + return wxT(""); } int wxJoystick::GetXMin(void) const @@ -342,7 +347,7 @@ bool wxJoystick::HasPOVCTS(void) const // Operations //////////////////////////////////////////////////////////////////////////// -bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq = 0) +bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq) { m_catchwin = win; m_polling = pollingFreq; @@ -355,4 +360,5 @@ bool wxJoystick::ReleaseCapture(void) m_polling = 0; return TRUE; } +#endif // wxUSE_JOYSTICK