]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/joystick.cpp
added test for m_macControlIsShown in MacRedrawControl apparently HideControl does...
[wxWidgets.git] / src / mac / joystick.cpp
index 6677277f48be151868fcbe292166c92cb0914462..bfe4ee3533a3be1eb959cfab44721e0db9549c52 100644 (file)
 #pragma implementation "joystick.h"
 #endif
 
-#include <wx/joystick.h>
+#include "wx/setup.h"
+
+#include "wx/joystick.h"
+
+#if wxUSE_JOYSTICK
 
 IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
 
@@ -277,3 +281,6 @@ bool wxJoystick::ReleaseCapture()
     return FALSE;
 }
 
+#endif
+       // wxUSE_JOYSTICK
+