UNPKG

@rbuljan/gamepad

Version:

Multi-touch gamepad with buttons and joystick for JavaScript games, apps, IOT

14 lines (13 loc) 347 B
import { Controller } from "./controller"; import { ControllerOptions } from "./ControllerOptions"; /** * Gamepad - Joystick Controller */ export declare class Joystick extends Controller { elementKnob: HTMLElement; constructor(options: ControllerOptions); onStart(): void; onMove(): void; onEnd(): void; init(): void; }