Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceSource<T>

Class that handles all input for a specific device

Type parameters

Hierarchy

  • DeviceSource

Index

Constructors

constructor

  • Default Constructor

    Parameters

    • deviceInputSystem: IDeviceInputSystem

      Reference to DeviceInputSystem

    • deviceType: T

      Type of device

    • Optional deviceSlot: number

      "Slot" or index that device is referenced in

    Returns DeviceSource

Properties

Readonly deviceSlotSearch playground for deviceSlot

deviceSlot: number

"Slot" or index that device is referenced in

Readonly deviceTypeSearch playground for deviceType

deviceType: T

Type of device

Readonly onInputChangedObservableSearch playground for onInputChangedObservable

onInputChangedObservable: Observable<DeviceSourceEvent<T>>

Observable to handle device input changes per device

Methods

getInputSearch playground for getInput

  • Get input for specific input

    Parameters

    • inputIndex: DeviceInput<T>

      index of specific input on device

    Returns number

    Input value from DeviceInputSystem

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method