Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Event

Index

Constructors

constructor

  • new Event(name: string, callback: Function, type?: EventType): Event

Properties

callback

callback: Function

listeners

listeners: Function[]

name

name: string

type

type: EventType

Methods

Static emit

  • emit(name: string | string[], params?: any): void

Static Private emitEvent

  • emitEvent(name: string, params?: any): void

Static on

  • on(name: string | string[], callback: Function): void

Static onAnyKeyReleased

  • onAnyKeyReleased(callback: NoArgsCallback): void

Static onClick

  • onClick(callback: MouseCallback): void

Static Private onEvent

  • onEvent(name: string, callback: Function): void

Static onKeyDown

  • onKeyDown(name: string | string[], callback: KeyboardEventCallback): void
  • Parameters

    • name: string | string[]
    • callback: KeyboardEventCallback

    Returns void

Static onKeyPressed

  • onKeyPressed(name: string | string[], callback: KeyboardEventCallback): void
  • Parameters

    • name: string | string[]
    • callback: KeyboardEventCallback

    Returns void

Static onMouseClick

  • onMouseClick(callback: MouseCallback): void

Static onMouseMove

  • onMouseMove(callback: MouseCallback): void

Legend

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

Generated using TypeDoc