Skip to content

@vttforge/core / KeyboardApi

Interface: KeyboardApi ​

game.keyboard.

Properties ​

downKeys ​

readonly downKeys: Set<string>


moveKeys ​

readonly moveKeys: Set<string>

Methods ​

hasFocus() ​

hasFocus(): boolean

Returns ​

boolean


isModifierActive() ​

isModifierActive(modifier): boolean

Parameters ​

modifier ​

string

Returns ​

boolean

MIT licensed.