From d1179f95011103a1e3aa9bacd270e82935370f88 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 5 Aug 2015 23:55:16 +0200 Subject: command: add a command for defining input bindings This was requested. It was more or less present internally already and used for Lua scripting. Lua will switch to the "public" functions in the following commits. --- player/command.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index e4e1f2ea7b..edb1d81d66 100644 --- a/player/command.c +++ b/player/command.c @@ -4692,6 +4692,11 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re mp_input_disable_section(mpctx->input, cmd->args[0].v.s); break; + case MP_CMD_DEFINE_INPUT_SECTION: + mp_input_define_section(mpctx->input, cmd->args[0].v.s, "", + cmd->args[1].v.s, !!cmd->args[2].v.i); + break; + case MP_CMD_AB_LOOP: { double now = get_current_time(mpctx); int r = 0; -- cgit v1.2.3