-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkeys.h
139 lines (131 loc) · 2.74 KB
/
keys.h
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#ifndef KEYS_H
#define KEYS_H
#ifdef __cplusplus
extern "C" {
#endif
enum key_cmd
{
KEY_CMD_QUIT_CLIENT,
KEY_CMD_GO,
KEY_CMD_MENU_DOWN,
KEY_CMD_MENU_UP,
KEY_CMD_MENU_NPAGE,
KEY_CMD_MENU_PPAGE,
KEY_CMD_MENU_FIRST,
KEY_CMD_MENU_LAST,
KEY_CMD_QUIT,
KEY_CMD_STOP,
KEY_CMD_NEXT,
KEY_CMD_PREVIOUS,
KEY_CMD_PAUSE,
KEY_CMD_TOGGLE_READ_TAGS,
KEY_CMD_TOGGLE_REPEAT,
KEY_CMD_TOGGLE_AUTO_NEXT,
KEY_CMD_TOGGLE_MENU,
KEY_CMD_TOGGLE_LAYOUT,
KEY_CMD_TOGGLE_PERCENT,
KEY_CMD_PLIST_ADD_FILE,
KEY_CMD_PLIST_CLEAR,
KEY_CMD_PLIST_ADD_DIR,
KEY_CMD_PLIST_REMOVE_DEAD_ENTRIES,
KEY_CMD_MIXER_DEC_1,
KEY_CMD_MIXER_INC_1,
KEY_CMD_MIXER_DEC_5,
KEY_CMD_MIXER_INC_5,
KEY_CMD_SEEK_FORWARD,
KEY_CMD_SEEK_BACKWARD,
KEY_CMD_SEEK_FORWARD_5,
KEY_CMD_SEEK_BACKWARD_5,
KEY_CMD_HELP,
KEY_C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Y_CMD_EXEC10,
KEY_CMD_TOGGLE_PLAYLIST_FULL_PATHS,
KEY_CMD_TOGGLE_SOFTMIXER,
KEY_CMD_TOGGLE_EQUALIZER,
KEY_CMD_EQUALIZER_REFRESH,
KEY_CMD_EQUALIZER_PREV,
KEY_CMD_EQUALIZER_NEXT,
KEY_CMD_TOGGLE_MAKE_MONO,
KEY_CMD_LYRICS,
KEY_CMD_QUEUE_TOGGLE_FILE,
KEY_CMD_QUEUE_CLEAR,
KEY_CMD_WRONG
};
/* Key context is the place where the user presses a key. A key can have
* different meanings in different places. */
enum key_context
{
CON_MENU,
CON_ENTRY_SEARCH,
CON_ENTRY
};
#ifndef KEY_ESCAPE
# define KEY_ESCAPE 27
#endif
#define META_KEY_FLAG 0x80
#define CTRL_KEY_CODE 0x1F
struct iface_key;
enum key_cmd get_key_cmd (const enum key_context context, const struct iface_key *key);
void keys_init ();
void keys_cleanup ();
char **get_keys_help (int *num);
int key_was_redefined (const enum key_cmd cmd);
#ifdef __cplusplus
}
#endif
#endif