Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceEventFactory

Class to wrap DeviceInputSystem data into an event object

Hierarchy

  • DeviceEventFactory

Index

Methods

Static CreateDeviceEventSearch 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 IUIEvent

    IUIEvent object

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method