Class DeviceSourceManager
Hierarchy
- DeviceSourceManager
Index
Constructors
constructor
-
Default constructor
Parameters
-
engine: Engine
Used to get canvas (if applicable)
Returns DeviceSourceManager
-
Properties
get Device SourceSearch playground for getDeviceSource
Gets a DeviceSource, given a type and slot
Type declaration
-
-
Type parameters
-
T: DeviceType
Parameters
-
deviceType: T
-
Optional deviceSlot: number
Returns Nullable<DeviceSource<T>>
-
-
get Device SourcesSearch playground for getDeviceSources
Gets an array of DeviceSource objects for a given device type
Type declaration
-
-
Type parameters
-
T: DeviceType
Parameters
-
deviceType: T
Returns ReadonlyArray<DeviceSource<T>>
-
-
get DevicesSearch playground for getDevices
Returns a read-only list of all available devices
Type declaration
-
-
Returns ReadonlyArray<DeviceSource<DeviceType>>
-
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
Readonly on Input Changed ObservableSearch playground for onInputChangedObservable
Observable to be triggered when a device's input is changed
Class to keep track of devices