aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-11-06 20:27:19 +0100
committerGravatar wm4 <wm4@nowhere>2013-11-06 20:27:19 +0100
commitac01e6a14705c8d747d9ce5e2282c134bc9293de (patch)
tree3c574fc96197e1b1c0dc2646bf4af04467b087ed /etc
parentce8bc1320d1a8a5e1a5797a6f19ea3f7d6701617 (diff)
input.conf: clarify the magic how default key bindings are added
This is a confusing mechanism, so the explanation should bit more clear.
Diffstat (limited to 'etc')
-rw-r--r--etc/input.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/input.conf b/etc/input.conf
index 1687220d08..432444f753 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