]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/hidjoystick.cpp
added wxWindow::GetPrev/NextSibling()
[wxWidgets.git] / src / mac / corefoundation / hidjoystick.cpp
index d3017da77cf6b320d76fe293e990b23670f59d43..a14444989e5efb71cb6089a0f79d9b7b87ce83e0 100644 (file)
@@ -25,7 +25,7 @@
 //---------------------------------------------------------------------------
 
 //we only support HID on OSX (DARWIN), since it requires DARWIN...
-#if wxUSE_JOYSTICK && defined(__DARWIN__)
+#if wxUSE_JOYSTICK && defined(__DARWIN__) && wxUSE_THREADS
 
 //---------------------------------------------------------------------------
 // Includes
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/event.h"   //joystick wxEvents
+    #include "wx/window.h"  //for wxWindow to "capture" joystick
 #endif
 
-#include "wx/event.h"       //joystick wxEvents
 #include "wx/joystick.h"    //...
 #include "wx/thread.h"      //wxThread for polling thread/ wxCriticalSection
-#include "wx/window.h"      //for wxWindow to "capture" joystick
 
 //private headers
 #include "wx/mac/corefoundation/hid.h" //private mac hid stuff
@@ -75,7 +75,7 @@ class wxHIDJoystick : public wxHIDDevice
 {
 public:
     wxHIDJoystick();
-    ~wxHIDJoystick();
+    virtual ~wxHIDJoystick();
 
     bool Create(int nWhich);
     virtual void BuildCookies(CFArrayRef Array);
@@ -480,7 +480,7 @@ int wxJoystick::GetMovementThreshold() const
     return 0;
 }
 
-void wxJoystick::SetMovementThreshold(int threshold)
+void wxJoystick::SetMovementThreshold(int WXUNUSED(threshold))
 {
 }
 
@@ -795,8 +795,10 @@ void* wxJoystickThread::Entry()
 // 5) Sends the event to the polling window (if any)
 // 6) Gets the next event and goes back to (1)
 //---------------------------------------------------------------------------
-/*static*/ void wxJoystickThread::HIDCallback(void* target, IOReturn res,
-                                              void* context, void* sender)
+/*static*/ void wxJoystickThread::HIDCallback(void* WXUNUSED(target),
+                                              IOReturn WXUNUSED(res),
+                                              void* context,
+                                              void* WXUNUSED(sender))
 {
     IOHIDEventStruct hidevent;
     AbsoluteTime bogustime = {0,0};