Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputManager

Hierarchy

Implements

Index

Properties

Readonly event

event: IEventEmitter<this, IInputManagerEvents> = new EventEmitter<this, E>(this)

Readonly input

input: GlobalInputInfo = new GlobalInputInfo().event.subscribe("unpress", this.onUnpress)

Readonly mouse

mouse: GlobalMouseInfo = new GlobalMouseInfo()

Methods

deregister

  • deregister(): this
  • Returns this

disableUntil

  • disableUntil(until: number | Promise<any>, disabler: string): void
  • Parameters

    • until: number | Promise<any>
    • disabler: string

    Returns void

extractModifiers

  • Most input HTML events contain ctrlKey, shiftKey and altKey properties. This function takes any event, and if it has those properties, it returns a Set<Modifier> matching which of those properties is true.

    Parameters

    Returns Set<Modifier> | undefined

getCatalyst

  • Parameters

    Returns InputCatalyst | undefined

isDisabled

  • isDisabled(): boolean
  • Returns boolean

isDisabledBy

  • isDisabledBy(disabler: string): boolean
  • Parameters

    • disabler: string

    Returns boolean

isRegistered

  • isRegistered(): boolean
  • Returns boolean

register

  • Parameters

    Returns this

reset

  • reset(): void
  • Returns void

Generated using TypeDoc