UNPKG

@mesmotronic/xpad

Version:

Simplified Gamepad API for Xbox 360 and Xbox One controllers

38 lines (37 loc) 873 B
import { ConbineEvent } from "conbine"; export declare class XpadEvent extends ConbineEvent { index?: number | undefined; /** * Xpad is connected and ready to use */ static CONNECT: string; /** * Xpad is disconnected */ static DISCONNECT: string; /** * Xpad button is pressed */ static BUTTON_DOWN: string; /** * Xpad button is released */ static BUTTON_UP: string; /** * Xpad button state has changed */ static BUTTON_CHANGE: string; /** * Xpad stick is active (not in center) */ static STICK_ACTIVE: string; /** * Xpad stick is inactive (in center) */ static STICK_INACTIVE: string; /** * Xpad stick state has changed */ static STICK_CHANGE: string; constructor(type: string, index?: number | undefined, data?: any); }