GamepadButton class Null safety
The interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
A object is returned by querying any value of the array returned
buttons property of the Gamepad interface.
Note: This is the case in Firefox Gecko 28 and later; Chrome and
earlier Firefox versions still return an array of double values
when this property is accessed.
- hashCode → int
The hash code for this object. [...]
- pressed → bool
Booleanvalue indicating whether the button is currently pressed (
true) or unpressed (
- runtimeType → Type
A representation of the runtime type of the object.
- touched → bool
- value → double
A double value used to represent the current state of analog
buttons, such as the triggers on many modern gamepads. The values
are normalized to the range 0.0 —1.0, with 0.0 representing a
button that is not pressed, and 1.0 representing a button that is