summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-13 21:10:20 +0200
committerwm4 <wm4@nowhere>2012-10-14 22:28:51 +0200
commit187cbd7aa7a74bf1596b3501c095920441f76dc0 (patch)
treeeee5f51458440a74076d81e5b908cfd858a92933 /input/input.h
parentad5bc380e2605108398d3815ad10adcbebf3913b (diff)
downloadmpv-187cbd7aa7a74bf1596b3501c095920441f76dc0.tar.bz2
mpv-187cbd7aa7a74bf1596b3501c095920441f76dc0.tar.xz
input: add input test mode
In input test mode, key bindings won't be executed, but are shown on the OSD. The OSD includes various information, such as the name of the key, the command itself, whether it's builtin, and the config file location it was defined. The input test mode can be enabled with "--input=test". No effort is spent trying to react to key bindings that normally exit the player; they are treated just like any other binding.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h
index 4bd68cca48..59f2d031ff 100644
--- a/input/input.h
+++ b/input/input.h
@@ -130,6 +130,7 @@ typedef struct mp_cmd {
int nargs;
int pausing;
enum mp_on_osd on_osd;
+ bstr original;
struct mp_cmd *queue_next;
} mp_cmd_t;