Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputManager

Hierarchy

  • EventEmitter
    • InputManager

Index

Constructors

constructor

Properties

Private _controllers

_controllers: object

Type declaration

Private _factory

Static Private _instance

_instance: InputManager

Static defaultMaxListeners

defaultMaxListeners: number

Methods

Private _createControllerFactory

Private _getController

Private _getControllerName

  • _getControllerName(controller: Controller): string

addListener

  • addListener(event: string | symbol, listener: function): this

createController

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number

hasController

  • hasController(name: string): boolean

listenerCount

  • listenerCount(type: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

on

  • on(event: string | symbol, listener: function): this

onInputReceived

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeController

  • removeController(name: string): void

removeListener

  • removeListener(event: string | symbol, listener: function): this

setMaxListeners

  • setMaxListeners(n: number): this

Static getSingleton

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc