Class DeviceSource<T>
Type Parameters
T extends DeviceType
Hierarchy
- DeviceSource
Index
Constructors
constructor
Default Constructor
Type Parameters
T extends DeviceType
Parameters
deviceInputSystem: IDeviceInputSystem
Reference to DeviceInputSystem
deviceType: T
Type of device
Optional deviceSlot: number
"Slot" or index that device is referenced in
Returns DeviceSource<T>
Properties
Readonly device SlotSearch playground for deviceSlot
"Slot" or index that device is referenced in
Readonly device TypeSearch playground for deviceType
Type of device
Readonly on Input Changed ObservableSearch playground for onInputChangedObservable
Observable to handle device input changes per device
Methods
get InputSearch playground for getInput
Get input for specific input
Parameters
inputIndex: DeviceInput<T>
index of specific input on device
Returns number
Input value from DeviceInputSystem
Class that handles all input for a specific device