Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Keyboard

Hierarchy

  • EventEmitter
    • Keyboard

Index

Constructors

constructor

Properties

Private _buttonMap

_buttonMap: object

Type declaration

  • [key: string]: any

Private _buttonsActive

_buttonsActive: object

Type declaration

  • [key: string]: boolean

Static Private _instance

_instance: Keyboard

Static defaultMaxListeners

defaultMaxListeners: number

Methods

Protected _setButtonActive

  • _setButtonActive(id: number, active: boolean): void

Protected _setButtonValue

  • _setButtonValue(id: number, value: any): void

addListener

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

emit

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

eventNames

  • eventNames(): Array<string | symbol>

getButtonValue

  • getButtonValue(id: number): any

getMaxListeners

  • getMaxListeners(): number

isButtonActive

  • isButtonActive(id: number): boolean

listenerCount

  • listenerCount(type: string | symbol): number

listeners

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

on

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

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

removeListener

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

setMaxListeners

  • setMaxListeners(n: number): this

Static getInstance

Static listenerCount

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

Generated using TypeDoc