DeviceSourceManager

Class to keep track of devices

Hierarchy

  • DeviceSourceManager

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

Readonly onAfterDeviceConnectedObservable

Find examples in Playground
onAfterDeviceConnectedObservable: Observable<object>

Observable to be triggered when after a device is connected

Readonly onAfterDeviceDisconnectedObservable

Find examples in Playground
onAfterDeviceDisconnectedObservable: Observable<object>

Observable to be triggered when after a device is disconnected

Readonly onBeforeDeviceConnectedObservable

Find examples in Playground
onBeforeDeviceConnectedObservable: Observable<object>

Observable to be triggered when before a device is connected

Readonly onBeforeDeviceDisconnectedObservable

Find examples in Playground
onBeforeDeviceDisconnectedObservable: Observable<object>

Observable to be triggered when before a device is disconnected

Methods

dispose

Find examples in Playground
  • dispose(): void
  • Dispose of DeviceInputSystem and other parts

    Returns void

getDeviceSource

Find examples in Playground
  • Gets a DeviceSource, given a type and slot

    Type parameters

    Parameters

    • deviceType: T

      Enum specifying device type

    • Optional deviceSlot: number

      "Slot" or index that device is referenced in

    Returns Nullable<DeviceSource<T>>

    DeviceSource object

getDeviceSources

Find examples in Playground
  • getDeviceSources<T>(deviceType: T): ReadonlyArray<DeviceSource<T>>
  • Gets an array of DeviceSource objects for a given device type

    Type parameters

    Parameters

    • deviceType: T

      Enum specifying device type

    Returns ReadonlyArray<DeviceSource<T>>

    Array of DeviceSource objects

Generated using TypeDoc