Options
All
  • Public
  • Public/Protected
  • All
Menu

Module metadata

Index

Type aliases

Axis

Axis: keyof AxisMap

AxisInformation

AxisInformation: AxisInformation_Root

AxisMax

AxisMax: keyof AxisMaxMap

AxisMin

AxisMin: keyof AxisMinMap

AxisRange

AxisRange: keyof AxisRangeMap

Button

Button: keyof ButtonMap

ButtonInformation

DeviceType

DeviceType: keyof DeviceTypeMap

Stick

Stick: keyof StickMap

VendorProduct

VendorProduct: object

Type declaration

  • product: string
  • vendor: string

Variables

Const axises

axises: object

Type declaration

Const buttons

buttons: object

Type declaration

Const deviceTypes

deviceTypes: object

Type declaration

Const devices

devices: object

Type declaration

  • [vendorProduct: string]: Device | undefined

Functions

findRemap

getAxisLabel

  • getAxisLabel(id: Axis, locHint?: ReadonlyArray<string>): string
  • Parameters

    • id: Axis
    • Default value locHint: ReadonlyArray<string> = navigator.languages

    Returns string

getButtonLabel

  • getButtonLabel(id: Button, locHint?: ReadonlyArray<string>): string

getDeviceAxises

getDeviceButtons

getDeviceLabel

getDeviceType

getGamepadAxisLabel

getGamepadButtonLabel

ids

isDeviceType

isGamepad

registerButtons

  • registerButtons<ButtonMap>(newButtons: object): void

registerDevice

  • registerDevice(vendorId: string, productId: string, deviceType: DeviceType, description: LocText): void

registerDeviceType

registerRemap

  • registerRemap(remap: Remap): void

regsiterAxises

  • regsiterAxises<AxisMap>(newAxises: object): void

vpid

Generated using TypeDoc