summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-23 01:28:28 +0200
committerwm4 <wm4@nowhere>2013-06-29 22:58:13 +0200
commitfc422f5aebbfe6dd2ea12b92fe9b13ba5fd65041 (patch)
treed6aa5720da791117d26feb56bd5bf89f55bfd122 /DOCS
parent776e2893a23c9cd139c406e15c6ec56ebba48b01 (diff)
downloadmpv-fc422f5aebbfe6dd2ea12b92fe9b13ba5fd65041.tar.bz2
mpv-fc422f5aebbfe6dd2ea12b92fe9b13ba5fd65041.tar.xz
command: add commands to enable/disable input sections
For now, it's mostly for testing. It also might allow to create key binding state machines, but this sounds questionable.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/input.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/DOCS/man/en/input.rst b/DOCS/man/en/input.rst
index e904e0b86b..d57d686184 100644
--- a/DOCS/man/en/input.rst
+++ b/DOCS/man/en/input.rst
@@ -266,6 +266,21 @@ vf set|add|toggle|del "filter1=params,filter2,..."
- ``b vf set ""`` remove all video filters on ``b``
- ``c vf toggle lavfi=gradfun`` toggle debanding on ``c``
+enable_section "<section>" [default|exclusive]
+ Enable all key bindings in the named input section.
+
+ The enabled input sections form a stack. Bindings in sections on the top of
+ the stack are preferred to lower sections. This command puts the section
+ on top of the stack. If the section was already on the stack, it's
+ implicitly removed beforehand. (A section can't be on the stack twice.)
+
+ If ``exclusive`` is specified as second argument, all sections below the
+ newly enabled section are disabled. They will be re-enabled as soon as
+ all exclusive above them are removed.
+
+disable_section "<section>"
+ Disable the named input section. Undoes ``enable_section``.
+
Undocumented commands: tv_start_scan, tv_step_channel, tv_step_norm,
tv_step_chanlist, tv_set_channel, tv_last_channel, tv_set_freq, tv_step_freq,
tv_set_norm, dvb_set_channel, radio_step_channel, radio_set_channel,