Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for DeviceInputSystem implementations (JS and Native)

Hierarchy

Index

Methods

  • dispose(): void
  • Releases all held resources

    Returns void

  • isDeviceAvailable(deviceType: DeviceType): boolean
  • Check for a specific device in the DeviceInputSystem

    Parameters

    • deviceType: DeviceType

      Type of device to check for

    Returns boolean

    bool with status of device's existence

  • pollInput(deviceType: DeviceType, deviceSlot: number, inputIndex: number): number
  • Checks for current device input value, given an id and input index. Throws exception if requested device not initialized.

    Parameters

    • deviceType: DeviceType

      Enum specifying device type

    • deviceSlot: number

      "Slot" or index that device is referenced in

    • inputIndex: number

      Id of input to be checked

    Returns number

    Current value of input

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme