GamepadsPlatformInterface class abstract

Inheritance
  • Object
  • PlatformInterface
  • GamepadsPlatformInterface
Implementers

Constructors

GamepadsPlatformInterface()

Properties

gamepadConnectionEventsStream Stream<GamepadConnectionEvent>
A stream of gamepads being connected to and disconnected from the device.
no setter
gamepadEventsStream Stream<GamepadEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
emitGamepadConnectionEvent(GamepadConnectionEvent event) → void
emitGamepadEvent(GamepadEvent event) → void
eventsByGamepad(String gamepadId) Stream<GamepadEvent>
hasRumble(String gamepadId) Future<bool>
Whether the device currently exposes a usable rumble actuator.
listGamepads() Future<List<GamepadController>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rumble(String gamepadId, {double lowFrequency = 0, double highFrequency = 0, Duration duration = const Duration(milliseconds: 500)}) Future<bool>
Replaces the current effect. Intensities are in 0, 1; duration is limited to 30 seconds. Returns false when unavailable or rejected. A true result means accepted, not that physical feedback was verified.
stopRumble(String gamepadId) Future<bool>
Stops this device immediately without affecting other controllers.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance GamepadsPlatformInterface
The default instance of GamepadsPlatformInterface to use.
getter/setter pair

Static Methods

validateRumble(double low, double high, Duration duration) → void