Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.4.10/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>