GamepadHapticActuator extension type

The GamepadHapticActuator interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.

This interface is accessible through the Gamepad.hapticActuators property.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playEffect(GamepadHapticEffectType type, [GamepadEffectParameters params]) JSPromise<JSString>
The playEffect() method of the GamepadHapticActuator interface makes the hardware play a specific vibration pattern.
pulse(num value, num duration) JSPromise<JSBoolean>
The pulse() method of the GamepadHapticActuator interface makes the hardware pulse at a certain intensity for a specified duration.
reset() JSPromise<JSString>
toString() String
A string representation of this object.
inherited

Operators

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