diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-27 02:28:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-27 02:28:07 +0200 |
commit | f0058b966ecf90070168c5b74a73ca2b2ff3e65a (patch) | |
tree | 89b22c89fe9dc7333e75dfe215440b8eb01ff1e7 /Makefile | |
parent | Improve documentation and add LIBGAMEPAD_CONTROLLER_LINUX_4_12_RECTIFIED_3BTN (diff) | |
download | libgamepad-f0058b966ecf90070168c5b74a73ca2b2ff3e65a.tar.gz libgamepad-f0058b966ecf90070168c5b74a73ca2b2ff3e65a.tar.bz2 libgamepad-f0058b966ecf90070168c5b74a73ca2b2ff3e65a.tar.xz |
Fix button and axis names
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,13 +88,13 @@ libgamepad_absolute_axis_names__.o: absolute-axis.names libgamepad_relative_axis_names__.o: relative-axis.names button.names: names.sh - printf '%s\n' '#include <linux/input.h>' | $(CPP) -dM | ./names.sh BTN KEY > $@ + ./names.sh '0x%03X' BTN KEY < $(INPUT_EVENT_CODES_H) > $@ absolute-axis.names: names.sh - printf '%s\n' '#include <linux/input.h>' | $(CPP) -dM | ./names.sh ABS > $@ + ./names.sh '0x%02X' ABS < $(INPUT_EVENT_CODES_H) > $@ relative-axis.names: names.sh - printf '%s\n' '#include <linux/input.h>' | $(CPP) -dM | ./names.sh REL > $@ + ./names.sh '0x%02X' REL < $(INPUT_EVENT_CODES_H) > $@ .names.count: wc -l < $< > $@ |