ControllerDeviceEvent class

A device was added, removed, or remapped.

SDL Docs

Inheritance

Constructors

ControllerDeviceEvent({required Sdl sdl, required int timestamp, required int joystickId, required DeviceState state})
Create an event.
const
ControllerDeviceEvent.fromSdlEvent(Sdl sdl, SDL_ControllerDeviceEvent event)
Create an instance from an SDL event.

Properties

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 DeviceState
The type of this event.
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