diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-28 20:40:21 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-28 20:40:21 +0000 |
commit | 5475823f41bfe971bec6dd2208dd7c01bc11edd8 (patch) | |
tree | 69fec4aa970acebcae084d086f6a7846f5b669f2 /input | |
parent | e55db72e97eb5f652db237cb16abb79d4f2c927d (diff) |
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5381 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 13 | ||||
-rw-r--r-- | input/input.h | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index cb74313223..37a3872b0e 100644 --- a/input/input.c +++ b/input/input.c @@ -75,6 +75,10 @@ static mp_cmd_t mp_cmds[] = { { MP_CMD_GUI_PREFERENCES, "gui_preferences", 0, { {-1,{0}} } }, { MP_CMD_GUI_SKINBROWSER, "gui_skinbrowser", 0, { {-1,{0}} } }, #endif + +#ifdef USE_DVDNAV + { MP_CMD_DVDNAV, "dvdnav", 1, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, +#endif { 0, NULL, 0, {} } }; @@ -159,6 +163,15 @@ static mp_cmd_bind_t def_cmd_binds[] = { { { MOUSE_BTN5, 0 }, "volume 1" }, { { MOUSE_BTN6, 0 }, "volume -1" }, +#ifdef USE_DVDNAV + { { 'K', 0 }, "dvdnav 1" }, // up + { { 'J', 0 }, "dvdnav 2" }, // down + { { 'H', 0 }, "dvdnav 3" }, // left + { { 'L', 0 }, "dvdnav 4" }, // right + { { 'M', 0 }, "dvdnav 5" }, // menu + { { 'S', 0 }, "dvdnav 6" }, // select +#endif + { { KEY_RIGHT, 0 }, "seek 10" }, { { KEY_LEFT, 0 }, "seek -10" }, { { KEY_UP, 0 }, "seek 60" }, diff --git a/input/input.h b/input/input.h index 2d7cacfd84..5e254f9887 100644 --- a/input/input.h +++ b/input/input.h @@ -24,6 +24,7 @@ #define MP_CMD_TV_STEP_CHANNEL_LIST 19 #define MP_CMD_VO_FULLSCREEN 20 #define MP_CMD_SUB_POS 21 +#define MP_CMD_DVDNAV 22 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 @@ -36,6 +37,13 @@ #define MP_CMD_GUI_FULLSCREEN 5008 #define MP_CMD_GUI_SKINBROWSER 5009 +#define MP_CMD_DVDNAV_UP 1 +#define MP_CMD_DVDNAV_DOWN 2 +#define MP_CMD_DVDNAV_LEFT 3 +#define MP_CMD_DVDNAV_RIGHT 4 +#define MP_CMD_DVDNAV_MENU 5 +#define MP_CMD_DVDNAV_SELECT 6 + // The args types #define MP_CMD_ARG_INT 0 #define MP_CMD_ARG_FLOAT 1 |