From d0fe5e08b984db840545c1b341a1e56fad304593 Mon Sep 17 00:00:00 2001 From: torque Date: Wed, 10 Jun 2015 16:56:56 -0700 Subject: command: add keypress, keydown, and keyup commands. These commands are used to simulate keypresses using the key names from input.conf. --- DOCS/man/input.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'DOCS/man/input.rst') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index fb80007eb9..397e425c1e 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -395,6 +395,23 @@ List of Input Commands The mouse event represents double-click. +``keypress `` + Send a key event through mpv's input handler, triggering whatever + behavior is configured to that key. ``key_name`` uses the ``input.conf`` + naming scheme for keys and modifiers. Useful for the client API: key events + can be sent to libmpv to handle internally. + +``keydown `` + Similar to ``keypress``, but sets the ``KEYDOWN`` flag so that if the key is + bound to a repeatable command, it will be run repeatedly with mpv's key + repeat timing until the ``keyup`` command is called. + +``keyup []`` + Set the ``KEYUP`` flag, stopping any repeated behavior that had been + triggered. ``key_name`` is optional. If ``key_name`` is not given or is an + empty string, ``KEYUP`` will be set on all keys. Otherwise, ``KEYUP`` will + only be set on the key specified by ``key_name``. + ``audio-add "" [ [ [<lang>]]]`` Load the given audio file. See ``sub-add`` command. -- cgit v1.2.3