diff options
author | wm4 <wm4@nowhere> | 2015-08-05 23:55:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-06 00:16:45 +0200 |
commit | d1179f95011103a1e3aa9bacd270e82935370f88 (patch) | |
tree | 341be84a7aae32baac3b534ee5ae5d18c6acc85c /player | |
parent | beb4f8316aca2f206ce1ea743498b4241670c37d (diff) | |
download | mpv-d1179f95011103a1e3aa9bacd270e82935370f88.tar.bz2 mpv-d1179f95011103a1e3aa9bacd270e82935370f88.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, "<api>", + 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; |