diff options
author | wm4 <wm4@nowhere> | 2012-09-22 15:17:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:32 +0200 |
commit | 0de86f5bf386e987c0a28dbecdc69155c1abdbcd (patch) | |
tree | 2df37f84449eb493997cce6701d833705fc05223 /input/input.h | |
parent | d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e (diff) | |
download | mpv-0de86f5bf386e987c0a28dbecdc69155c1abdbcd.tar.bz2 mpv-0de86f5bf386e987c0a28dbecdc69155c1abdbcd.tar.xz |
input: warn about non-existing commands, add explicit "ignore" command
If a command is not found, warn about it at loading time (just like
other command parsing errors are printed at loading time).
Add an explicit "ignore" command. input.conf instructs users to use this
command to cancel out existing mapping. This clashed with the
warning added in this commit. Make "ignore" a real command and remove
the specialcasing for it from get_cmd_from_keys(). Now "ignore" is
ignored because it's not handled in command.c.
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h index 8a2bef3ac0..4823ab75f0 100644 --- a/input/input.h +++ b/input/input.h @@ -24,6 +24,7 @@ // All command IDs enum mp_command_type { + MP_CMD_IGNORE, MP_CMD_SEEK, MP_CMD_QUIT, MP_CMD_PLAYLIST_NEXT, |