Skip to content

1681-engine / index / rumble

Function: rumble() ​

ts
function rumble(
   padIndex, 
   options, 
   pads?
): Promise<boolean>;

Defined in: src/input/rumble.ts:65

Rumbles the pad at padIndex (as in navigator.getGamepads()); resolves false where it cannot.

Parameters ​

ParameterTypeDefault value
padIndexnumberundefined
optionsRumbleOptionsundefined
pads() => readonly (RumblePad | null)[]navigatorPads

Returns ​

Promise<boolean>

Released under the MIT License.