summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-06 00:08:38 +0100
committerwm4 <wm4@nowhere>2013-11-06 00:08:38 +0100
commit3cfbe810383d8efd04e8c0b3ad47cfe73f69ca97 (patch)
tree704051ac3940c06429bd17dcc9b0c0270934440f
parent9dc0dfbd54349672c5948f323f8490b91d4b3a62 (diff)
downloadmpv-3cfbe810383d8efd04e8c0b3ad47cfe73f69ca97.tar.bz2
mpv-3cfbe810383d8efd04e8c0b3ad47cfe73f69ca97.tar.xz
input: remove unused key_down_event command
There's no real use-case for this, and is wasn't documented (didn't even appear on the "undocumented commands" list).
-rw-r--r--mpvcore/input/input.c1
-rw-r--r--mpvcore/input/input.h1
-rw-r--r--mpvcore/player/command.c4
3 files changed, 0 insertions, 6 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c
index a5f2b3d372..b61d47d770 100644
--- a/mpvcore/input/input.c
+++ b/mpvcore/input/input.c
@@ -208,7 +208,6 @@ static const mp_cmd_t mp_cmds[] = {
{ MP_CMD_PLAYLIST_MOVE, "playlist_move", { ARG_INT, ARG_INT } },
{ MP_CMD_RUN, "run", { ARG_STRING } },
- { MP_CMD_KEYDOWN_EVENTS, "key_down_event", { ARG_INT } },
{ MP_CMD_SET, "set", { ARG_STRING, ARG_STRING } },
{ MP_CMD_GET_PROPERTY, "get_property", { ARG_STRING } },
{ MP_CMD_ADD, "add", { ARG_STRING, OARG_DOUBLE(0) },
diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h
index 160abfb50e..f55e151b7d 100644
--- a/mpvcore/input/input.h
+++ b/mpvcore/input/input.h
@@ -54,7 +54,6 @@ enum mp_command_type {
MP_CMD_SUB_ADD,
MP_CMD_SUB_REMOVE,
MP_CMD_SUB_RELOAD,
- MP_CMD_KEYDOWN_EVENTS,
MP_CMD_SET,
MP_CMD_GET_PROPERTY,
MP_CMD_PRINT_TEXT,
diff --git a/mpvcore/player/command.c b/mpvcore/player/command.c
index 05369470ff..be34d4e8f5 100644
--- a/mpvcore/player/command.c
+++ b/mpvcore/player/command.c
@@ -2940,10 +2940,6 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
#endif
break;
- case MP_CMD_KEYDOWN_EVENTS:
- mp_input_put_key(mpctx->input, cmd->args[0].v.i);
- break;
-
case MP_CMD_ENABLE_INPUT_SECTION:
mp_input_enable_section(mpctx->input, cmd->args[0].v.s,
cmd->args[1].v.i == 1 ? MP_INPUT_EXCLUSIVE : 0);