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