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; }