Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InputManager

Index

Constructors

Properties

Accessors

Methods

Constructors

Private constructor

Properties

Private keys

keys: Map<string, boolean> = ...

Static Private _instance

_instance: InputManager

Accessors

Static Instance

Methods

any

  • any(): boolean

pressed

  • pressed(key: string): boolean
  • Check if given key is pressed.

    Parameters

    • key: string

      Key to check.

    Returns boolean

    True when key is pressed, false when not.

Generated using TypeDoc