forked from huceke/omxplayer
-
Notifications
You must be signed in to change notification settings - Fork 334
/
KeyConfig.h
58 lines (54 loc) · 1.6 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <map>
#include <string>
class KeyConfig
{
public:
enum
{
ACTION_DECREASE_SPEED = 1,
ACTION_INCREASE_SPEED = 2,
ACTION_REWIND = 3,
ACTION_FAST_FORWARD = 4,
ACTION_SHOW_INFO = 5,
ACTION_PREVIOUS_AUDIO = 6,
ACTION_NEXT_AUDIO = 7,
ACTION_PREVIOUS_CHAPTER = 8,
ACTION_NEXT_CHAPTER = 9,
ACTION_PREVIOUS_SUBTITLE = 10,
ACTION_NEXT_SUBTITLE = 11,
ACTION_TOGGLE_SUBTITLE = 12,
ACTION_DECREASE_SUBTITLE_DELAY = 13,
ACTION_INCREASE_SUBTITLE_DELAY = 14,
ACTION_EXIT = 15,
ACTION_PLAYPAUSE = 16,
ACTION_DECREASE_VOLUME = 17,
ACTION_INCREASE_VOLUME = 18,
ACTION_SEEK_BACK_SMALL = 19,
ACTION_SEEK_FORWARD_SMALL = 20,
ACTION_SEEK_BACK_LARGE = 21,
ACTION_SEEK_FORWARD_LARGE = 22,
ACTION_SEEK_RELATIVE = 25,
ACTION_SEEK_ABSOLUTE = 26,
ACTION_STEP = 23,
ACTION_BLANK = 24,
ACTION_MOVE_VIDEO = 27,
ACTION_HIDE_VIDEO = 28,
ACTION_UNHIDE_VIDEO = 29,
ACTION_HIDE_SUBTITLES = 30,
ACTION_SHOW_SUBTITLES = 31,
ACTION_SET_ALPHA = 32,
ACTION_SET_ASPECT_MODE = 33,
ACTION_CROP_VIDEO = 34,
ACTION_PAUSE = 35,
ACTION_PLAY = 36,
ACTION_CHANGE_FILE = 37,
ACTION_SET_LAYER = 38,
};
#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);
};