UNPKG

dualsense-ts

Version:

A natural interface for your DualSense controller, with Typescript

10 lines (7 loc) 179 B
import { Input } from "../input"; export class Momentary extends Input<boolean> { public state: boolean = false; public get active(): boolean { return this.state; } }