@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
37 lines (35 loc) • 686 B
JavaScript
/**
* Corresponds to {@link KeyboardEvent.key}
* @readonly
* @enum {string}
*/
export const KeyValue = {
Backspace: "Backspace",
ArrowLeft: "ArrowLeft",
ArrowUp: "ArrowUp",
ArrowDown: "ArrowDown",
ArrowRight: "ArrowRight",
Escape: "Escape",
Enter: "Enter",
Shift: "Shift",
Control: "Control",
Alt: "Alt",
Space: " ",
CapsLock: "CapsLock",
Tab: "Tab",
Delete: "Delete",
/**
* Meta represents Windows/Command key
*/
Meta: "Meta",
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
};