Update README.rst

This commit is contained in:
Merlijn Wajer 2013-05-19 13:46:11 +02:00
parent aba2913a4b
commit eb5d6d3077

View File

@ -4,7 +4,6 @@ uinput-mapper
uinput-mapper maps input devices to new virtual input devices, using (as implied
by the name /dev/uinput[1]).
[1] Or /dev/input/uinput depending on the OS.
@ -38,4 +37,6 @@ Included in uinput-mapper ; may be split later
Development notes
=================
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
Generating gen.py:
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