summaryrefslogtreecommitdiffstats
path: root/input/cmd_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r--input/cmd_list.c7
1 files changed, 7 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}
};