wxJoystickEvent(3erl)
π wxJoystickEvent π
Manual name: wxJoystickEvent(3erl) Β· Erlang Module Definition. Bestie, we're in joystick-event lore now.
πΈ NAME πΈ
wxJoystickEvent β functions for the wxJoystickEvent class. That's the whole assignment. π
π DESCRIPTION π
Okay so this event class is literally the one holding information about joystick events, particularly events received by windows. Obsessed.
See: wxJoystick (not implemented in wx).
This class is derived (and can use functions) from: wxEvent. Slay.
wxWidgets docs: wxJoystickEvent.
β¨ EVENTS β¨
Use wxEvtHandler:connect/3 with wxJoystickEventType to subscribe to events of this type. No cap.
π¦ DATA TYPES π¦
wxJoystickEvent() = wx:wx_object()
π wxJoystick()
wxJoystick() =
#wxJoystick{type = wxJoystickEvent:wxJoystickEventType(),
pos = {X :: integer(), Y :: integer()},
zPosition = integer(),
buttonChange = integer(),
buttonState = integer(),
joyStick = integer()}
π wxJoystickEventType()
wxJoystickEventType() =
joy_button_down | joy_button_up | joy_move | joy_zmove
π EXPORTS π
β¨ buttonDown(This) -> boolean()
Types:
This = wxJoystickEvent()
β¨ buttonDown(This, Options :: [Option]) -> boolean()
Types:
This = wxJoystickEvent()Option = {but, integer()}
Returns true if the event was a down event from the specified button (or any button). Iconic.
πΈ buttonIsDown(This) -> boolean()
Types:
This = wxJoystickEvent()
πΈ buttonIsDown(This, Options :: [Option]) -> boolean()
Types:
This = wxJoystickEvent()Option = {but, integer()}
Returns true if the specified button (or any button) was in a down state. Periodt.
π¦ buttonUp(This) -> boolean()
Types:
This = wxJoystickEvent()
π¦ buttonUp(This, Options :: [Option]) -> boolean()
Types:
This = wxJoystickEvent()Option = {but, integer()}
Returns true if the event was an up event from the specified button (or any button). Slay.
π getButtonChange(This) -> integer()
Types:
This = wxJoystickEvent()
Returns the identifier of the button changing state.
The return value is where n is the index of the button changing state, which can also be retrieved using GetButtonOrdinal() (not implemented in wx).
Note that for n equal to 1, 2, 3 or 4 there are predefined wxJOY_BUTTONn constants which can be used for more clarity, however these constants are not defined for the buttons beyond the first four. Iykyk.
π getButtonState(This) -> integer()
Types:
This = wxJoystickEvent()
Returns the down state of the buttons.
This is a wxJOY_BUTTONn identifier, where n is one of 1, 2, 3, 4. Simple as that.
π getJoystick(This) -> integer()
Types:
This = wxJoystickEvent()
Returns the identifier of the joystick generating the event - one of wxJOYSTICK1 and wxJOYSTICK2. Main character joystick energy.
β getPosition(This) -> {X :: integer(), Y :: integer()}
Types:
This = wxJoystickEvent()
Returns the x, y position of the joystick event.
These coordinates are valid for all the events except wxEVT_JOY_ZMOVE. Noted.
π§ getZPosition(This) -> integer()
Types:
This = wxJoystickEvent()
Returns the z position of the joystick event.
This method can only be used for wxEVT_JOY_ZMOVE events. Z-move exclusive.
π isButton(This) -> boolean()
Types:
This = wxJoystickEvent()
Returns true if this was a button up or down event (not 'is any button down?'). Read that twice, bestie β fr fr.
π isMove(This) -> boolean()
Types:
This = wxJoystickEvent()
Returns true if this was an x, y move event.
πΈ isZMove(This) -> boolean()
Types:
This = wxJoystickEvent()
Returns true if this was a z move event.
Footer sign-off: wxWidgets team. Β· wx 2.2.2.1 Β· wxJoystickEvent(3erl). Source/version noted β the footer doesn't print a separate date, so that's the exact footer tea. π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms