From b35d89d42bbec31d49368b3f014a605408ccb8be Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Aug 2012 22:52:28 +0200 Subject: input: replace internal key binds with included etc/input.conf The internal array of default key bindings is removed. Include the file etc/input.conf at compile time (using the file2header tool), and parse the default binds from etc/input.conf at startup time. This lowers maintainance overhead, and makes sure the default bindings and etc/input.conf don't deviate. Commit f30bf73bf22ed0542 already made sure etc/input.conf matches the default bindings, so this commit shouldn't change anything user-visible. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 948bc98155..5395be7477 100644 --- a/Makefile +++ b/Makefile @@ -519,6 +519,10 @@ codec-cfg.c: codecs.conf.h codecs.conf.h: TOOLS/file2string.py etc/codecs.conf ./$^ >$@ +input/input.c: input/input_conf.h +input/input_conf.h: TOOLS/file2string.py etc/input.conf + ./$^ >$@ + libvo/vo_vdpau.c: libvo/vdpau_template.c libvo/vdpau_template.c: TOOLS/vdpau_functions.py ./$< > $@ -- cgit v1.2.3