Gamepad class
This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. Available only in secure contexts.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Gamepad()
-
factory
Properties
-
axes
→ ReadonlyArray<
num> -
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter -
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - connected → bool
-
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter -
hapticActuators
→ ReadonlyArray<
GamepadHapticActuator> -
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - index → num
-
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - mapping → GamepadMappingType
-
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → num
-
Available on Gamepad, provided by the Gamepad$Typings extension
MDN Referenceno setter - vibrationActuator → GamepadHapticActuator?
-
Available on Gamepad, provided by the Gamepad$Typings extension
no setter
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