Interface IDeviceInputSystem
Hierarchy
-
IDisposable
- IDeviceInputSystem
Index
Properties
Methods
Properties
on Device ConnectedSearch playground for onDeviceConnected
Callback for when a device is connected
Type declaration
-
-
Parameters
-
deviceType: DeviceType
-
deviceSlot: number
Returns void
-
-
on Device DisconnectedSearch playground for onDeviceDisconnected
Callback for when a device is disconnected
Type declaration
-
-
Parameters
-
deviceType: DeviceType
-
deviceSlot: number
Returns void
-
-
on Input ChangedSearch playground for onInputChanged
Callback for when an input is changed
Type declaration
-
-
Parameters
-
deviceEvent: IDeviceEvent
Returns void
-
-
Methods
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)