Skip to main content
Module

x/commandis/mod.ts>dom.GamepadHapticActuator

Official framework for Corddis lib ( for Deno only )
Latest
interface dom.GamepadHapticActuator
import { type dom } from "https://deno.land/x/commandis@v0.6.5/mod.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>