GamepadController class
Represents a single, currently connected joystick controller (or gamepad).
By calling the constructor, this object will automatically subscribe to events and update its internal state. To stop listening, be sure to call dispose. Failing to do so may result in the object leaking memory.
Constructors
- GamepadController({required String id, required String name, required GamepadsPlatformInterface plugin})
- GamepadController.parse(Map map, GamepadsPlatformInterface plugin)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique identifier for the gamepad controller.
final
- name → String
-
A user-facing, platform-dependant name for the gamepad controller.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → GamepadState
-
final
Methods
-
dispose(
) → Future< void> - Stops listening for new inputs.
-
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