ControllerButtonEvent class

A controller button was pressed or released.

SDL Docs

Inheritance

Constructors

ControllerButtonEvent({required Sdl sdl, required int timestamp, required int joystickId, required GameControllerButton button, required PressedState state})
Create an event.
const
ControllerButtonEvent.fromSdlEvent(Sdl sdl, SDL_ControllerButtonEvent event)
Create an instance from an SDL event.

Properties

button GameControllerButton
The button that was pressed or released.
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 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