From 4f0d56b9ae993ab39db45eeac978a9a5e632add3 Mon Sep 17 00:00:00 2001 From: voroshil Date: Sun, 29 Jul 2007 17:55:28 +0000 Subject: Teletext support. Part 2/5: options/slaves/configure/definitions/etc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23920 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 8 ++++++++ input/input.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index 425763a1c2..affe926c9c 100644 --- a/input/input.c +++ b/input/input.c @@ -139,6 +139,9 @@ static mp_cmd_t mp_cmds[] = { { MP_CMD_LOADLIST, "loadlist", 1, { {MP_CMD_ARG_STRING, {0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_RUN, "run", 1, { {MP_CMD_ARG_STRING,{0}}, {-1,{0}} } }, { MP_CMD_VF_CHANGE_RECTANGLE, "change_rectangle", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}}}}, +#ifdef HAVE_TV_TELETEXT + { MP_CMD_TV_TELETEXT_ADD_DEC, "teletext_add_dec", 1, { {MP_CMD_ARG_STRING,{0}}, {-1,{0}} } }, +#endif #ifdef HAVE_NEW_GUI { MP_CMD_GUI_LOADFILE, "gui_loadfile", 0, { {-1,{0}} } }, @@ -391,6 +394,11 @@ static mp_cmd_bind_t def_cmd_binds[] = { { { 'n', 0 }, "tv_step_norm" }, { { 'u', 0 }, "tv_step_chanlist" }, #endif +#ifdef HAVE_TV_TELETEXT + { { 'X', 0 }, "step_property teletext_mode 1" }, + { { 'W', 0 }, "step_property teletext_page 1" }, + { { 'Q', 0 }, "step_property teletext_page -1" }, +#endif #ifdef HAVE_JOYSTICK { { JOY_AXIS0_PLUS, 0 }, "seek 10" }, { { JOY_AXIS0_MINUS, 0 }, "seek -10" }, diff --git a/input/input.h b/input/input.h index 6092445060..9970207c4c 100644 --- a/input/input.h +++ b/input/input.h @@ -96,6 +96,8 @@ #define MP_CMD_LOOP 94 #define MP_CMD_BALANCE 96 #define MP_CMD_SUB_SCALE 97 +#define MP_CMD_TV_TELETEXT_ADD_DEC 98 +#define MP_CMD_TV_TELETEXT_GO_LINK 99 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 -- cgit v1.2.3