-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys.enum.ts
63 lines (61 loc) · 1.89 KB
/
keys.enum.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export enum Keys {
ARROW_UP = "ArrowUp",
ARROW_DOWN = "ArrowDown",
ARROW_LEFT = "ArrowLeft",
ARROW_RIGHT = "ArrowRight",
DELETE = "Delete",
CONTROL = "ControlLeft",
SHIFT = "ShiftLeft",
TAB = "Tab",
PAGE_UP = "PageUp",
PAGE_DOWN = "PageDown",
ESCAPE = "Escape",
SPACE = "Space",
ENTER = "Enter",
W = "KeyW",
F = "KeyF",
A = "KeyA",
P = "KeyP",
S = "KeyS",
D = "KeyD",
R = "KeyR",
Y = "KeyY",
Z = "KeyZ",
X = "KeyX",
V = "KeyV",
C = "KeyC",
O = "KeyO",
H = "KeyH",
Q = "KeyQ",
L = "KeyL",
DIGIT_1 = "Digit1",
DIGIT_2 = "Digit2",
DIGIT_3 = "Digit3",
DIGIT_4 = "Digit4",
DIGIT_5 = "Digit5",
DIGIT_6 = "Digit6",
DIGIT_7 = "Digit7",
DIGIT_8 = "Digit8",
DIGIT_9 = "Digit9",
DIGIT_0 = "Digit0",
}
export class KeysOld {
public static readonly ENTER = 13;
public static readonly TAB = 9;
public static readonly W = 87;
public static readonly A = 65;
public static readonly S = 83;
public static readonly D = 68;
public static readonly Q = 81;
public static readonly E = 69;
public static readonly F = 70;
public static readonly LCONTROL = 17;
public static readonly ESCAPE = 27;
public static readonly LALT = 18;
public static readonly LSHIFT = 16;
public static readonly SPACE = 32;
public static readonly ARROW_UP = 38;
public static readonly ARROW_DOWN = 40;
public static readonly ARROW_RIGHT = 39;
public static readonly ARROW_LEFT = 37;
}