Interface IDeviceInputSystem
Hierarchy
- IDisposable
- IDeviceInputSystem
Index
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 specifying 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)