uinput-mapper/genkeys.sh
2012-12-03 22:12:48 +01:00

2 lines
127 B
Bash

echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define KEY_' | cut -f2 -d" " | sed 's/KEY_.*/DEF_KEY(&)/' > def_keys.h