]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/joystick.cpp
Fix broken and missing DataView interface items for Phoenix
[wxWidgets.git] / src / msw / joystick.cpp
index 1b9f8b04cede331fa8819b936854cf4745c2daef..158c0b64b845e70ecc6a8f66f47d8b210a59ea5e 100644 (file)
@@ -641,9 +641,15 @@ bool wxJoystick::HasPOVCTS() const
 
 bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq)
 {
 
 bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq)
 {
+#ifdef __WXMSW__
     BOOL changed = (pollingFreq == 0);
     MMRESULT res = joySetCapture((HWND) win->GetHWND(), m_joystick, pollingFreq, changed);
     return (res == JOYERR_NOERROR);
     BOOL changed = (pollingFreq == 0);
     MMRESULT res = joySetCapture((HWND) win->GetHWND(), m_joystick, pollingFreq, changed);
     return (res == JOYERR_NOERROR);
+#else
+    wxUnusedVar(win);
+    wxUnusedVar(pollingFreq);
+    return false;
+#endif
 }
 
 bool wxJoystick::ReleaseCapture()
 }
 
 bool wxJoystick::ReleaseCapture()