Class DeviceSourceManager
Hierarchy
- DeviceSourceManager
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Default Constructor
Parameters
-
engine: Engine
engine to pull input element from
Returns DeviceSourceManager
-
Properties
Readonly on Device Connected ObservableSearch playground for onDeviceConnectedObservable
Observable to be triggered when after a device is connected, any new observers added will be triggered against already connected devices
Readonly on Device Disconnected ObservableSearch playground for onDeviceDisconnectedObservable
Observable to be triggered when after a device is disconnected
Methods
disposeSearch playground for dispose
-
Dispose of DeviceInputSystem and other parts
Returns void
get Device SourceSearch playground for getDeviceSource
-
Gets a DeviceSource, given a type and slot
Type parameters
-
T: DeviceType
Parameters
-
deviceType: T
Enum specifying device type
-
Optional deviceSlot: number
"Slot" or index that device is referenced in
Returns Nullable<DeviceSource<T>>
DeviceSource object
-
get Device SourcesSearch playground for getDeviceSources
-
Gets an array of DeviceSource objects for a given device type
Type parameters
-
T: DeviceType
Parameters
-
deviceType: T
Enum specifying device type
Returns ReadonlyArray<DeviceSource<T>>
Array of DeviceSource objects
-
get DevicesSearch playground for getDevices
-
Returns a read-only list of all available devices
Returns ReadonlyArray<DeviceSource<DeviceType>>
Read-only array with active devices
Class to keep track of devices