forked from popcornmix/omxplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeyConfig.h
44 lines (40 loc) · 1.04 KB
/
KeyConfig.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
#include <map>
#include <string>
class KeyConfig
{
public:
enum
{
ACTION_DECREASE_SPEED = 1,
ACTION_INCREASE_SPEED,
ACTION_REWIND,
ACTION_FAST_FORWARD,
ACTION_SHOW_INFO,
ACTION_PREVIOUS_AUDIO,
ACTION_NEXT_AUDIO,
ACTION_PREVIOUS_CHAPTER,
ACTION_NEXT_CHAPTER,
ACTION_PREVIOUS_SUBTITLE,
ACTION_NEXT_SUBTITLE,
ACTION_TOGGLE_SUBTITLE,
ACTION_DECREASE_SUBTITLE_DELAY,
ACTION_INCREASE_SUBTITLE_DELAY,
ACTION_EXIT,
ACTION_PAUSE,
ACTION_DECREASE_VOLUME,
ACTION_INCREASE_VOLUME,
ACTION_SEEK_BACK_SMALL,
ACTION_SEEK_FORWARD_SMALL,
ACTION_SEEK_BACK_LARGE,
ACTION_SEEK_FORWARD_LARGE,
ACTION_STEP,
ACTION_BLANK
};
#define KEY_LEFT 0x5b44
#define KEY_RIGHT 0x5b43
#define KEY_UP 0x5b41
#define KEY_DOWN 0x5b42
#define KEY_ESC 27
static std::map<int, int> buildDefaultKeymap();
static std::map<int, int> parseConfigFile(std::string filepath);
};