Options
All
  • Public
  • Public/Protected
  • All
Menu

Tracks Keyboard Input from User and executes actions that have been added to actions.

Hierarchy

  • InputTracker

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected actions

actions: KeyAction[] = []

List of KeyAction to execute if certain keys have ben pressed.

Protected logKeys

logKeys: boolean = false

Will log keyboard presses to console to assist with designing.

Methods

addAction

Protected handleKey

  • handleKey(event: KeyboardEvent): void

setLogKeys

  • setLogKeys(logKeys: boolean): void

Generated using TypeDoc