Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to keep track of devices

Hierarchy

  • DeviceSourceManager

Implements

Index

Constructors

  • Default constructor

    Parameters

    • engine: Engine

      Used to get canvas (if applicable)

    Returns DeviceSourceManager

Properties

onDeviceConnectedObservable: Observable<DeviceSourceType>

Observable to be triggered when after a device is connected, any new observers added will be triggered against already connected devices

onDeviceDisconnectedObservable: Observable<DeviceSourceType>

Observable to be triggered when after a device is disconnected

Methods

  • _onInputChanged<T>(deviceType: T, deviceSlot: number, eventData: IUIEvent): void
  • _removeDevice(deviceType: DeviceType, deviceSlot: number): void
  • dispose(): void
  • Dispose of DeviceSourceManager

    Returns void

  • Gets a DeviceSource, given a type and slot

    Type Parameters

    Parameters

    • deviceType: T

      Type of Device

    • Optional deviceSlot: number

      Slot or ID of device

    Returns Nullable<DeviceSource<T>>

    DeviceSource

  • getDeviceSources<T>(deviceType: T): readonly DeviceSource<T>[]
  • Gets an array of DeviceSource objects for a given device type

    Type Parameters

    Parameters

    • deviceType: T

      Type of Device

    Returns readonly DeviceSource<T>[]

    All available DeviceSources of a given type

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme