1681-engine / index / Haptics
Class: Haptics<K> ​
Defined in: src/input/haptics.ts:58
Buzzes through play when enabled and the kind's gap has passed.
Type Parameters ​
| Type Parameter |
|---|
K extends string |
Constructors ​
Constructor ​
ts
new Haptics<K>(options?): Haptics<K>;Defined in: src/input/haptics.ts:64
Parameters ​
| Parameter | Type |
|---|---|
options | HapticsOptions<K> |
Returns ​
Haptics<K>
Methods ​
buzz() ​
ts
buzz(kind): boolean;Defined in: src/input/haptics.ts:72
Buzzes for kind; returns whether it was let through (not whether the device did buzz).
Parameters ​
| Parameter | Type |
|---|---|
kind | K |
Returns ​
boolean