Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Input

Index

Constructors

Properties

bindings: Map<string, string> = ...
pressed: Map<string, number> = ...
KEY: {} = ...

Type declaration

  • [key: string]: string

Methods

  • bind(key: string, action: string): void
  • Parameters

    • key: string
    • action: string

    Returns void

  • bindKeys(): void
  • isPressed(action: string): number
  • Parameters

    • action: string

    Returns number

  • keydown(event: KeyboardEvent): void
  • Parameters

    • event: KeyboardEvent

    Returns void

  • keyup(event: KeyboardEvent): void
  • Parameters

    • event: KeyboardEvent

    Returns void

  • unbindKeys(): void