This event class contains information about joystick events, particularly events received by windows.
Handlers bound for the following event types will receive a wx.JoystickEvent parameter.
EVT_JOY_BUTTON_DOWN: Process a wxEVT_JOY_BUTTON_DOWN
event.
EVT_JOY_BUTTON_UP: Process a wxEVT_JOY_BUTTON_UP
event.
EVT_JOY_MOVE: Process a wxEVT_JOY_MOVE
event.
EVT_JOY_ZMOVE: Process a wxEVT_JOY_ZMOVE
event.
EVT_JOYSTICK_EVENTS: Processes all joystick events.
See also
Constructor. |
|
Returns |
|
Returns |
|
Returns |
|
Returns the identifier of the button changing state. |
|
Returns the down state of the buttons. |
|
Returns the identifier of the joystick generating the event - one of |
|
Returns the x, y position of the joystick event. |
|
Returns the z position of the joystick event. |
|
Returns |
|
Returns |
|
Returns |
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
JoystickEvent(eventType=wxEVT_NULL, state=0, joystick=JOYSTICK1,
change=0)
This event class contains information about joystick events, particularly events received by windows.
Constructor.
eventType (wx.EventType) –
state (int) –
joystick (int) –
change (int) –
Returns True
if the event was a down event from the specified button (or any button).
button (int) – Can be JOY_BUTTONn
where n
is 1, 2, 3 or 4; or JOY_BUTTON_ANY
to indicate any button down event.
bool
Returns True
if the specified button (or any button) was in a down state.
button (int) – Can be JOY_BUTTONn
where n
is 1, 2, 3 or 4; or JOY_BUTTON_ANY
to indicate any button down event.
bool
Returns True
if the event was an up event from the specified button (or any button).
button (int) – Can be JOY_BUTTONn
where n
is 1, 2, 3 or 4; or JOY_BUTTON_ANY
to indicate any button down event.
bool
Returns the identifier of the button changing state.
This is a JOY_BUTTONn
identifier, where n
is one of 1, 2, 3, 4.
int
Returns the down state of the buttons.
This is a JOY_BUTTONn
identifier, where n
is one of 1, 2, 3, 4.
int
Returns the identifier of the joystick generating the event - one of wx.JOYSTICK1
and wx.JOYSTICK2
.
int
Returns the x, y position of the joystick event.
These coordinates are valid for all the events except wxEVT_JOY_ZMOVE.
Returns the z position of the joystick event.
This method can only be used for wxEVT_JOY_ZMOVE events.
int
Returns True
if this was a button up or down event (not ‘is any button down?’).
bool
Returns True
if this was an x, y move event.
bool
Returns True
if this was a z move event.
bool
See GetButtonChange
See GetButtonState
See GetJoystick
See GetPosition
See GetZPosition