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: DeviceInputSystem

      Reference to DeviceInputSystem

    • deviceType: DeviceType

      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: DeviceType

Type of device

Readonly onInputChangedObservableSearch playground for onInputChangedObservable

onInputChangedObservable: Observable<{ currentState: Nullable<number>; inputIndex: DeviceInput<T>; previousState: Nullable<number> }>

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
  • Static method