]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_joystick.i
default id's where possible
[wxWidgets.git] / wxPython / src / _joystick.i
index fe2da5c0fda332e5d40f27745144c4698b5683f6..b47bdb444b2c7665c52c8e334603e83375b8c2d3 100644 (file)
@@ -48,10 +48,10 @@ enum
 class wxJoystick : public wxObject {
 public:
     wxJoystick(int joystick = wxJOYSTICK1) {
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxJoystick is not available on this platform.");
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
     }
     wxPoint GetPosition() { return wxPoint(-1,-1); }
     int GetZPosition() { return -1; }