diff options
author | wm4 <wm4@nowhere> | 2013-11-30 00:18:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-30 01:08:23 +0100 |
commit | f388f14c01eeec551a3cdd705c9fa680048cb758 (patch) | |
tree | 44df7f883194a703dea3c3274a15166456795eb7 /mpvcore/input | |
parent | e61e6e6fd9676ce3ff3971851755cdb7cf63dbf1 (diff) | |
download | mpv-f388f14c01eeec551a3cdd705c9fa680048cb758.tar.bz2 mpv-f388f14c01eeec551a3cdd705c9fa680048cb758.tar.xz |
command: add a cycle_values input command
Diffstat (limited to 'mpvcore/input')
-rw-r--r-- | mpvcore/input/input.c | 5 | ||||
-rw-r--r-- | mpvcore/input/input.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c index 5d096fcd58..3e0313976a 100644 --- a/mpvcore/input/input.c +++ b/mpvcore/input/input.c @@ -228,7 +228,10 @@ static const struct mp_cmd_def mp_cmds[] = { .allow_auto_repeat = true }, { MP_CMD_MULTIPLY, "multiply", { ARG_STRING, ARG_DOUBLE }, - .allow_auto_repeat = true}, + .allow_auto_repeat = true}, + + { MP_CMD_CYCLE_VALUES, "cycle_values", { ARG_STRING, ARG_STRING, ARG_STRING }, + .vararg = true, .allow_auto_repeat = true}, { MP_CMD_ENABLE_INPUT_SECTION, "enable_section", { ARG_STRING, diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h index a7ddaa7db1..27db11705e 100644 --- a/mpvcore/input/input.h +++ b/mpvcore/input/input.h @@ -65,6 +65,7 @@ enum mp_command_type { MP_CMD_ADD, MP_CMD_CYCLE, MP_CMD_MULTIPLY, + MP_CMD_CYCLE_VALUES, MP_CMD_RADIO_STEP_FREQ, MP_CMD_TV_STEP_FREQ, MP_CMD_TV_START_SCAN, |