Interface IDeviceInputSystem
Hierarchy
-
IDisposable
- IDeviceInputSystem
Index
Properties
Readonly on Device Connected ObservableSearch playground for onDeviceConnectedObservable
Observable for devices being connected
Readonly on Device Disconnected ObservableSearch playground for onDeviceDisconnectedObservable
Observable for devices being disconnected
Readonly on Input Changed ObservableSearch playground for onInputChangedObservable
Observable for changes to device input
Methods
configure EventsSearch playground for configureEvents
-
Configures events to work with an engine's active element
Returns void
disposeSearch playground for dispose
-
Releases all held resources
Returns void
is Device AvailableSearch playground for isDeviceAvailable
-
Check for a specific device in the DeviceInputSystem
Parameters
-
deviceType: DeviceType
Type of device to check for
Returns boolean
bool with status of device's existence
-
poll InputSearch playground for pollInput
-
Checks for current device input value, given an id and input index. Throws exception if requested device not initialized.
Parameters
-
deviceType: DeviceType
Enum specifiying device type
-
deviceSlot: number
"Slot" or index that device is referenced in
-
inputIndex: number
Id of input to be checked
Returns number
Current value of input
-
Interface for DeviceInputSystem implementations (JS and Native)