wxJoystickEventThis event class contains information about mouse events, particularly events received by windows. Derived from Include files <wx/event.h> Event table macros To process a mouse event, use these event handler macros to direct input to member functions that take a wxJoystickEvent argument.
Members
wxJoystickEvent::wxJoystickEvent
wxJoystickEvent::wxJoystickEventwxJoystickEvent(WXTYPE eventType = 0, int state = 0, int joystick = wxJOYSTICK1, int change = 0) Constructor.
wxJoystickEvent::ButtonDownbool ButtonDown(int button = wxJOY_BUTTON_ANY) const Returns true if the event was a down event from the specified button (or any button). Parameters button
wxJoystickEvent::ButtonIsDownbool ButtonIsDown(int button = wxJOY_BUTTON_ANY) const Returns true if the specified button (or any button) was in a down state. Parameters button
wxJoystickEvent::ButtonUpbool ButtonUp(int button = wxJOY_BUTTON_ANY) const Returns true if the event was an up event from the specified button (or any button). Parameters button
wxJoystickEvent::GetButtonChangeint GetButtonChange() const Returns the identifier of the button changing state. This is a wxJOY_BUTTONn identifier, where n is one of 1, 2, 3, 4.
wxJoystickEvent::GetButtonStateint GetButtonState() const Returns the down state of the buttons. This is a bitlist of wxJOY_BUTTONn identifiers, where n is one of 1, 2, 3, 4.
wxJoystickEvent::GetJoystickint GetJoystick() const Returns the identifier of the joystick generating the event - one of wxJOYSTICK1 and wxJOYSTICK2.
wxJoystickEvent::GetPositionwxPoint GetPosition() const Returns the x, y position of the joystick event.
wxJoystickEvent::GetZPositionint GetZPosition() const Returns the z position of the joystick event.
wxJoystickEvent::IsButtonbool IsButton() const Returns true if this was a button up or down event (not 'is any button down?').
wxJoystickEvent::IsMovebool IsMove() const Returns true if this was an x, y move event.
wxJoystickEvent::IsZMovebool IsZMove() const Returns true if this was a z move event.
|