mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-12-03 12:12:15 -05:00
Update README.rst
Fix escapes so command to generate uinput_gen.py can be pasted directly into console
This commit is contained in:
parent
7828a7990e
commit
2f6a4bacf6
@ -39,4 +39,4 @@ Development notes
|
||||
|
||||
Generating uinputmapper/uinput_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 = {" ; awk '{print "\""$2"\" : " $3","}' ; echo "}" ) | gcc -E -o /dev/stdout - | awk '{ if ($0 == "input_constants_dict = {") pit=1; if (pit == 1) print $0; }' > uinputmapper/uinput_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 = {" ; awk '{print "\\""$2"\\" : " $3","}' ; echo "}" ) | gcc -E -o /dev/stdout - | awk '{ if ($0 == "input_constants_dict = {") pit=1; if (pit == 1) print $0; }' > uinputmapper/uinput_gen.py
|
||||
|
Loading…
Reference in New Issue
Block a user