Skip to main content
Module

x/evt/lib/types/index.ts>dom.GamepadHapticActuator

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.GamepadHapticActuator
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/types/index.ts";
const { GamepadHapticActuator } = dom;

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

Methods

pulse(value: number, duration: number): Promise<boolean>