JoyButtonEvent class
A button was pressed or released.
- Inheritance
-
- Object
- Event
- JoystickEvent
- JoyButtonEvent
Constructors
- JoyButtonEvent(Sdl sdl, int timestamp, int joystickId, int button, PressedState state)
-
Create an event.
const
- JoyButtonEvent.fromSdlEvent(Sdl sdl, SDL_JoyButtonEvent e)
- Create an instance from an event.
Properties
-
The button that was pressed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- joystickId → int
-
The id of the joystick that generated this event.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdl → Sdl
-
The SDL bindings to use for this event.
finalinherited
- state → PressedState
-
The state of the button.
final
- timestamp → int
-
The time this event was emitted.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited