diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-10 03:47:53 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-10 03:47:53 +0000 |
commit | a4bb9247bd70541dc48a58b2159e961ccf0ff525 (patch) | |
tree | e44bb9193ca04994ade7f299fc10a8561edecc3e /input | |
parent | 879062aac03ea79f90312f2f24f0cdb408ce5378 (diff) | |
download | mpv-a4bb9247bd70541dc48a58b2159e961ccf0ff525.tar.bz2 mpv-a4bb9247bd70541dc48a58b2159e961ccf0ff525.tar.xz |
-subpos key bindings with new input layer - patch by Tomas Konir <moje@molly.vabo.cz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5016 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 3 | ||||
-rw-r--r-- | input/input.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index be4e0f698d..843aa97048 100644 --- a/input/input.c +++ b/input/input.c @@ -49,6 +49,7 @@ static mp_cmd_t mp_cmds[] = { { MP_CMD_HUE, "hue",1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_SATURATION, "saturation",1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_FRAMEDROPPING, "frame_drop",0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, + { MP_CMD_SUB_POS, "sub_pos", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, #ifdef USE_TV { MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, { MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} } }, @@ -176,6 +177,8 @@ static mp_cmd_bind_t def_cmd_binds[] = { { { '7', 0 }, "saturation -1" }, { { '8', 0 }, "saturation 1" }, { { 'd', 0 }, "frame_drop" }, + { { 'r', 0 }, "sub_pos -1" }, + { { 't', 0 }, "sub_pos +1" }, #ifdef USE_TV { { 'h', 0 }, "tv_step_channel 1" }, { { 'k', 0 }, "tv_step_channel -1" }, diff --git a/input/input.h b/input/input.h index 1591eeea9d..9c663681a9 100644 --- a/input/input.h +++ b/input/input.h @@ -22,6 +22,7 @@ #define MP_CMD_TV_STEP_NORM 18 #define MP_CMD_TV_STEP_CHANNEL_LIST 19 #define MP_CMD_VO_FULLSCREEN 20 +#define MP_CMD_SUB_POS 21 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 |