mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-11-30 19:02:16 -05:00
Update README.rst
This commit is contained in:
parent
aba2913a4b
commit
eb5d6d3077
@ -4,7 +4,6 @@ uinput-mapper
|
|||||||
uinput-mapper maps input devices to new virtual input devices, using (as implied
|
uinput-mapper maps input devices to new virtual input devices, using (as implied
|
||||||
by the name /dev/uinput[1]).
|
by the name /dev/uinput[1]).
|
||||||
|
|
||||||
|
|
||||||
[1] Or /dev/input/uinput depending on the OS.
|
[1] Or /dev/input/uinput depending on the OS.
|
||||||
|
|
||||||
|
|
||||||
@ -38,4 +37,6 @@ Included in uinput-mapper ; may be split later
|
|||||||
Development notes
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user