ControllerSensorEvent class
A controller sensor event.
Exposes SDL_ControllerSensorEvent
.
- Inheritance
-
- Object
- Event
- JoystickEvent
- GameControllerEvent
- ControllerSensorEvent
- Mixed in types
Constructors
- ControllerSensorEvent({required Sdl sdl, required int timestamp, required int controllerId, required SensorType sensor, required double x, required double y, required double z})
- Create an event.
- ControllerSensorEvent.fromSdlEvent(Sdl sdl, SDL_ControllerSensorEvent event)
- Create an instance from an SDL event.
Properties
-
coordinates
→ Point<
double> -
Complete coordinates.
no setterinherited
- 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
- sensor → SensorType
-
The type of the sensor.
final
- timestamp → int
-
The time this event was emitted.
finalinherited
- x ↔ double
-
X coordinate.
latefinalinherited
- y ↔ double
-
Y coordinate.
latefinalinherited
- z → double
-
Z data.
final
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