Skip to content

@ralphschuler.webgl shader factory.<internal>.GamepadHapticActuator

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: GamepadHapticActuator

@ralphschuler/webgl-shader-factory.<internal>.GamepadHapticActuator

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

MDN Reference

Table of contents

Properties

Methods

Properties

type

Readonly type: "vibration"

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8739

Methods

playEffect

playEffect(type, params?): Promise<GamepadHapticsResult>

Parameters

Name Type
type "dual-rumble"
params? GamepadEffectParameters

Returns

Promise<GamepadHapticsResult>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8740


reset

reset(): Promise<GamepadHapticsResult>

Returns

Promise<GamepadHapticsResult>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8741

Typescript Libraries

Modules

Namespaces

Clone this wiki locally