Interface INativeInput
Hierarchy
-
IDisposable
- INativeInput
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 input is changed on a device
Type declaration
-
-
Parameters
-
deviceType: DeviceType
-
deviceSlot: number
-
inputIndex: number
-
previousState: Nullable<number>
-
currentState: Nullable<number>
-
Optional eventData: any
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.
Parameters
-
deviceType: DeviceType
Type of device
-
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 NativeInput object