JoyDeviceEvent class
A joystick device was connected or disconnected.
- Inheritance
-
- Object
- Event
- JoystickEvent
- JoyDeviceEvent
Constructors
- JoyDeviceEvent({required Sdl sdl, required int timestamp, required int joystickId, required DeviceState state})
-
Create an event.
const
- JoyDeviceEvent.fromSdlEvent(Sdl sdl, SDL_JoyDeviceEvent e)
- Create an instance from an 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
-
Whether or not the device was added ore removed.
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