DeviceSource<T>

Class that handles all input for a specific device

Type parameters

Hierarchy

  • DeviceSource

Index

Constructors

constructor

Find examples in Playground
  • Default Constructor

    Parameters

    • deviceInputSystem: DeviceInputSystem

      Reference to DeviceInputSystem

    • deviceType: DeviceType

      Type of device

    • Optional deviceSlot: number

      "Slot" or index that device is referenced in

    Returns DeviceSource

Properties

deviceSlot

Find examples in Playground
deviceSlot: number

"Slot" or index that device is referenced in

deviceType

Find examples in Playground
deviceType: DeviceType

Type of device

onInputChangedObservable

Find examples in Playground
onInputChangedObservable: Observable<object>

Observable to handle device input changes per device

Methods

getInput

Find examples in Playground
  • Get input for specific input

    Parameters

    • inputIndex: DeviceInput<T>

      index of specific input on device

    Returns Nullable<number>

    Input value from DeviceInputSystem

Generated using TypeDoc