diff options
Diffstat (limited to 'DOCS/man/lua.rst')
-rw-r--r-- | DOCS/man/lua.rst | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 4d47774319..6b2c5af031 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -192,7 +192,8 @@ The ``mp`` module is preloaded, although it can be loaded manually with Register callback to be run on a key binding. The binding will be mapped to the given ``key``, which is a string describing the physical key. This uses the same key names as in input.conf, and also allows combinations - (e.g. ``ctrl+a``). + (e.g. ``ctrl+a``). If the key is empty or ``nil``, no physical key is + registered, but the user still can create own bindings (see below). After calling this function, key presses will cause the function ``fn`` to be called (unless the user remapped the key with another binding). @@ -255,7 +256,7 @@ The ``mp`` module is preloaded, although it can be loaded manually with :: - y script-binding fooscript.something + y script-binding fooscript/something ``mp.add_forced_key_binding(...)`` This works almost the same as ``mp.add_key_binding``, but registers the @@ -412,7 +413,7 @@ are useful only in special situations. from displaying the next video frame, so that you don't get blocked when trying to access the player. - This is automatically called by the event handler. + Before mpv 0.17.0, this was automatically called by the event handler. ``mp.resume()`` Undo one ``mp.suspend()`` call. ``mp.suspend()`` increments an internal @@ -423,10 +424,6 @@ are useful only in special situations. This resets the internal suspend counter and resumes the player. (It's like calling ``mp.resume()`` until the player is actually resumed.) - You might want to call this if you're about to do something that takes a - long time, but doesn't really need access to the player (like a network - operation). Note that you still can access the player at any time. - ``mp.get_wakeup_pipe()`` Calls ``mpv_get_wakeup_pipe()`` and returns the read end of the wakeup pipe. (See ``client.h`` for details.) @@ -449,8 +446,6 @@ are useful only in special situations. ``mp.get_wakeup_pipe()`` if you're interested in properly working notification of new events and working timers. - This function calls ``mp.suspend()`` and ``mp.resume_all()`` on its own. - ``mp.enable_messages(level)`` Set the minimum log level of which mpv message output to receive. These messages are normally printed to the terminal. By calling this function, |