Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 845 Bytes

File metadata and controls

46 lines (26 loc) · 845 Bytes

retro-engine / Exports / KeyStates

Class: KeyStates

The KeyStates class is used to keep track of the state of the keyboard.

Table of contents

Properties

Methods

Properties

states

The map of key states.

Static Private states: Map<string, boolean>

Defined in

src/keyState.ts:2

Methods

isPressed

Checks if a key is currently pressed.

Static isPressed(key): boolean

Parameters

Name Type
key string

Returns

boolean

Defined in

src/keyState.ts:27