Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceSourceManager

Class to keep track of devices

Hierarchy

  • DeviceSourceManager

Index

Constructors

constructor

  • Default constructor

    Parameters

    • engine: Engine

      Used to get canvas (if applicable)

    Returns DeviceSourceManager

Properties

getDeviceSourceSearch playground for getDeviceSource

getDeviceSource: <T>(deviceType: T, deviceSlot?: number) => Nullable<DeviceSource<T>>

Gets a DeviceSource, given a type and slot

Type declaration

getDeviceSourcesSearch playground for getDeviceSources

getDeviceSources: <T>(deviceType: T) => ReadonlyArray<DeviceSource<T>>

Gets an array of DeviceSource objects for a given device type

Type declaration

getDevicesSearch playground for getDevices

getDevices: () => ReadonlyArray<DeviceSource<DeviceType>>

Returns a read-only list of all available devices

Type declaration

Readonly onDeviceConnectedObservableSearch playground for onDeviceConnectedObservable

onDeviceConnectedObservable: Observable<DeviceSource<DeviceType>>

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

Readonly onDeviceDisconnectedObservableSearch playground for onDeviceDisconnectedObservable

onDeviceDisconnectedObservable: Observable<DeviceSource<DeviceType>>

Observable to be triggered when after a device is disconnected

Readonly onInputChangedObservableSearch playground for onInputChangedObservable

onInputChangedObservable: Observable<IDeviceEvent>

Observable to be triggered when a device's input is changed

Legend

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