mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-11-24 16:52:14 -05:00
9113cb02b7
- Added all event constants except for (FF_) - Added InputDevice class. - Cleaned up linux_input a bit - list of events per event class is now a dictionary
16 lines
449 B
Plaintext
16 lines
449 B
Plaintext
Generate:
|
|
- input.h constants ; macros:
|
|
- EV_*
|
|
- KEY_*
|
|
- BTN_*
|
|
- REL_*
|
|
- ABS_*
|
|
|
|
gcc -E -dM /usr/include/linux/input.h | egrep ' (EV|SYN|KEY|BTN|REL|ABS|MSC|LED|SND|REP|SW)_[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
|
|
|
|
|
|
Lambas for EVIO*
|
|
|
|
|
|
- uinput
|