summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-06 20:27:19 +0100
committerwm4 <wm4@nowhere>2013-11-07 23:58:47 +0100
commitc265855d445873d55b6d4aa7ade19715f61dbaca (patch)
tree6198ed6b077e4877b929e975d27359ee18afc915
parent7816fa97450b5c0e263250cc65f5665f52606cdb (diff)
downloadmpv-c265855d445873d55b6d4aa7ade19715f61dbaca.tar.bz2
mpv-c265855d445873d55b6d4aa7ade19715f61dbaca.tar.xz
input.conf: clarify the magic how default key bindings are added
This is a confusing mechanism, so the explanation should bit more clear.
-rw-r--r--etc/input.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/input.conf b/etc/input.conf
index 78da3730bb..2c0999fdfa 100644
--- a/etc/input.conf
+++ b/etc/input.conf
@@ -31,9 +31,13 @@
# file to ~/.mpv/input.conf, and uncomment and edit the binding you want to
# change.
-# Developer note: this file is baked into the mpv binary, and internally,
-# entries are uncommented and added as default bindings. Lines that have a
-# space after the '#' are ignored.
+# Developer note:
+# etc/input.conf from the mpv source tree is baked into the mpv binary, with
+# all entries magically uncommented and parsed on initialization. This, this
+# file defines the mpv default key bindings. If this file is read as normal
+# config file, all lines starting with '#' are treated as comments (and this
+# file, if unedited, doesn't define any bindings).
+# Lines that have a space after the '#' are always ignored as real comments.
#MOUSE_BTN0 ignore # don't do anything
#MOUSE_BTN0_DBL cycle fullscreen # toggle fullscreen on/off