Skip to content

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 ​

ParameterType
optionsHapticsOptions<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 ​

ParameterType
kindK

Returns ​

boolean

Released under the MIT License.