# wxJoyStick
def EVT_JOY_DOWN(win, func):
- win.Connect(-1, -1, wxEVT_JOY_DOWN, func)
+ win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
def EVT_JOY_UP(win, func):
- win.Connect(-1, -1, wxEVT_JOY_UP, func)
+ win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
def EVT_JOY_MOVE(win, func):
win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
def EVT_JOYSTICK_EVENTS(win, func):
- win.Connect(-1, -1, wxEVT_JOY_DOWN, func)
- win.Connect(-1, -1, wxEVT_JOY_UP, func)
+ win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func)
+ win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func)
win.Connect(-1, -1, wxEVT_JOY_MOVE, func)
win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func)
self.SetOwner(evtHandler, id)
#----------------------------------------------------------------------
-# Some wxWin methods can take "NULL" as parameters, but the shadow classes
-# expect an object with the SWIG pointer as a 'this' member. This class
-# and instance fools the shadow into passing the NULL pointer.
-## NOTE: This is not needed anymore as None can be passed instead and
-# will be interpreted as NULL.
-
-class _NullObj:
- this = 'NULL' # SWIG converts this to (void*)0
-
-NULL = _NullObj()
+NULL = None # For backwards compatibility only. You should really be
+ # using None now.
#----------------------------------------------------------------------