]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/hidjoystick.cpp
bringing wxmac in line using cflocale
[wxWidgets.git] / src / mac / corefoundation / hidjoystick.cpp
index a0e63d71dbe084de5a7944b9f5a38050113e5f6d..637546c41458c247a4a867e0c3b5380e2c698c73 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 && wxUSE_THREADS
 
 //---------------------------------------------------------------------------
 // Includes
@@ -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};
@@ -900,4 +902,4 @@ void* wxJoystickThread::Entry()
     }
 }
 
-#endif // wxUSE_JOYSTICK && defined(__DARWIN__)
+#endif // wxUSE_JOYSTICK