summaryrefslogtreecommitdiffstats
path: root/core/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 19:27:45 +0200
committerwm4 <wm4@nowhere>2013-07-08 19:28:52 +0200
commit15a5422dd2ba18d10c598f91b8cdae86269b2af1 (patch)
treed102504505a0a3ec2047946871e7c40bc02100b7 /core/input/input.h
parent09250d9921304ae988de756fa9cb33d86758b519 (diff)
downloadmpv-15a5422dd2ba18d10c598f91b8cdae86269b2af1.tar.bz2
mpv-15a5422dd2ba18d10c598f91b8cdae86269b2af1.tar.xz
input: allow binding multiple commands to a key
Separate the commands with ';'.
Diffstat (limited to 'core/input/input.h')
-rw-r--r--core/input/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input.h b/core/input/input.h
index 2a9b3832c1..f7d69a0de7 100644
--- a/core/input/input.h
+++ b/core/input/input.h
@@ -87,6 +87,9 @@ enum mp_command_type {
/// Video output commands
MP_CMD_VO_CMDLINE,
+
+ // Internal
+ MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p
};
#define MP_CMD_MAX_ARGS 10
@@ -128,6 +131,7 @@ struct mp_cmd_arg {
float f;
double d;
char *s;
+ void *p;
} v;
};