diff options
author | wm4 <wm4@nowhere> | 2014-05-26 21:49:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-26 21:59:30 +0200 |
commit | 6710527a832a253439cb31862bd568380f41efec (patch) | |
tree | bad6493f7eea0dc51f71b5ab4a6f0be8f6079274 /input/cmd_list.c | |
parent | fbe59b23b1060cc98577afc883f9efbed9d8eebd (diff) | |
download | mpv-6710527a832a253439cb31862bd568380f41efec.tar.bz2 mpv-6710527a832a253439cb31862bd568380f41efec.tar.xz |
input: make combined commands repeatable
Binding multiple commands at once where always considered not
repeatable, because the MP_CMD_COMMAND_LIST wasn't considered
repeatable.
Fixes #807 (probably).
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index 9d4409ed8e..24ef6e7a0e 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -285,6 +285,12 @@ bool mp_input_is_abort_cmd(struct mp_cmd *cmd) return false; } +bool mp_input_is_repeatable_cmd(struct mp_cmd *cmd) +{ + return (cmd->def && cmd->def->allow_auto_repeat) || + cmd->id == MP_CMD_COMMAND_LIST; +} + void mp_print_cmd_list(struct mp_log *out) { for (int i = 0; mp_cmds[i].name; i++) { |