Class DeviceSource<T>
Type parameters
-
T: DeviceType
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 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