Class DeviceEventFactory
Hierarchy
- DeviceEventFactory
Index
Methods
Methods
Static Create Device EventSearch playground for CreateDeviceEvent
-
Create device input events based on provided type and slot
Parameters
-
deviceType: DeviceType
Type of device
-
deviceSlot: number
"Slot" or index that device is referenced in
-
inputIndex: number
Id of input to be checked
-
currentState: Nullable<number>
Current value for given input
-
deviceInputSystem: IDeviceInputSystem
Reference to DeviceInputSystem
-
Optional elementToAttachTo: any
HTMLElement to reference as target for inputs
Returns IEvent
IEvent object
-
Class to wrap DeviceInputSystem data into an event object