summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/cmd_list.c7
-rw-r--r--input/cmd_list.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index fc0ef17ed5..376f330ce2 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -186,6 +186,13 @@ const struct mp_cmd_def mp_cmds[] = {
{ MP_CMD_HOOK_ADD, "hook_add", { ARG_STRING, ARG_INT, ARG_INT } },
{ MP_CMD_HOOK_ACK, "hook_ack", { ARG_STRING } },
+ { MP_CMD_MOUSE, "mouse", {
+ ARG_INT, ARG_INT, // coordinate (x, y)
+ OARG_INT(-1), // button number
+ OARG_CHOICE(0, ({"single", 0},
+ {"double", 1})),
+ }},
+
{0}
};
diff --git a/input/cmd_list.h b/input/cmd_list.h
index bcaaf08b6e..84e64273e2 100644
--- a/input/cmd_list.h
+++ b/input/cmd_list.h
@@ -83,6 +83,8 @@ enum mp_command_type {
MP_CMD_DROP_BUFFERS,
+ MP_CMD_MOUSE,
+
/// Audio Filter commands
MP_CMD_AF,
MP_CMD_AO_RELOAD,