uinput-mapper/py/README

16 lines
430 B
Plaintext
Raw Normal View History

2013-04-17 18:34:45 -04:00
Generate:
- input.h constants ; macros:
- EV_*
- KEY_*
- BTN_*
- REL_*
- ABS_*
2013-04-17 18:48:24 -04:00
gcc -E -dM /usr/include/linux/input.h | egrep ' (KEY|BTN|EV|REL|ABS|SYN)_[A-Za-z0-9_]+' | ( echo "#include <linux/input.h>" ; echo "input_constants_dict = {" ; sed -r 's/[^ ]+ +([^ ]+).*/"\1" : \1,/' ; echo "}" ) | gcc -E -o /dev/stdout - | grep 'input_constants_dict = {' -A 100000 > gen.py
2013-04-17 18:34:45 -04:00
Lambas for EVIO*
- uinput