summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2015-01-24 05:45:13 +0900
committerwm4 <wm4@nowhere>2015-01-23 22:07:47 +0100
commit4a1a0e98d8f7ce8e1ab61ff740699cce9bb43f70 (patch)
treef09036422b389247b0dbfa5f231bbeea8f09998f /DOCS
parenta0a40eb2872d137898e6f96b8d46490f2e63071f (diff)
downloadmpv-4a1a0e98d8f7ce8e1ab61ff740699cce9bb43f70.tar.bz2
mpv-4a1a0e98d8f7ce8e1ab61ff740699cce9bb43f70.tar.xz
input, player: new command for mouse event
New command `mouse <x> <y> [<button> [single|double]]` is introduced. This will update mouse position with given coordinate (`<x>`, `<y>`), and additionally, send single-click or double-click event if `<button>` is given.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/input.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 3a97c51447..18235ac687 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -374,6 +374,23 @@ List of Input Commands
essentially like ``quit``. Useful for the client API: playback can be
stopped without terminating the player.
+``mouse <x> <y> [<button> [single|double]]``
+ Send a mouse event with given coordinate (``<x>``, ``<y>``).
+
+ Second argument:
+
+ <button>
+ The button number of clicked mouse button. This should be one of 0-19.
+ If ``<button>`` is omitted, only the position will be updated.
+
+ Third argument:
+
+ <single> (default)
+ The mouse event represents regular single click.
+
+ <double>
+ The mouse event represents double-click.
+
Input Commands that are Possibly Subject to Change
--------------------------------------------------