-
Notifications
You must be signed in to change notification settings - Fork 21
/
ButtonAction.ts
90 lines (63 loc) · 2.55 KB
/
ButtonAction.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
export enum ButtonAction {
/** This only fires on `InputHook.GET_ACTION_VALUE` (2). */
LEFT = 0,
/** This only fires on `InputHook.GET_ACTION_VALUE` (2). */
RIGHT = 1,
/** This only fires on `InputHook.GET_ACTION_VALUE` (2). */
UP = 2,
/** This only fires on `InputHook.GET_ACTION_VALUE` (2). */
DOWN = 3,
/** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */
SHOOT_LEFT = 4,
/** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */
SHOOT_RIGHT = 5,
/** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */
SHOOT_UP = 6,
/** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */
SHOOT_DOWN = 7,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
BOMB = 8,
/** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.IS_ACTION_TRIGGERED` (1). */
ITEM = 9,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
PILL_CARD = 10,
/**
* This is also used for switching cards, switching The Forgotten, holding Esau in place, and so
* on.
*
* This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.IS_ACTION_TRIGGERED` (1).
*/
DROP = 11,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
PAUSE = 12,
/** This only fires on `InputHook.IS_ACTION_PRESSED` (0). */
MAP = 13,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
MENU_CONFIRM = 14,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
MENU_BACK = 15,
/** This only fires on `InputHook.IS_ACTION_PRESSED` (0). */
RESTART = 16,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
FULLSCREEN = 17,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
MUTE = 18,
// Does not seem to trigger any input hooks while on keyboard.
JOIN_MULTIPLAYER = 19,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
MENU_LEFT = 20,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
MENU_RIGHT = 21,
// Does not seem to trigger any input hooks while on keyboard.
MENU_UP = 22,
// Does not seem to trigger any input hooks while on keyboard.
MENU_DOWN = 23,
// Does not seem to trigger any input hooks while on keyboard.
MENU_LT = 24,
// Does not seem to trigger any input hooks while on keyboard.
MENU_RT = 25,
// Does not seem to trigger any input hooks while on keyboard.
MENU_TAB = 26,
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
CONSOLE = 28,
}