uinput-mapper/README.rst

43 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2013-03-14 08:41:05 -04:00
uinput-mapper
=============
2012-12-11 15:13:57 -05:00
uinput-mapper maps input devices to new virtual input devices, using (as implied
by the name /dev/uinput[1]).
2012-12-04 18:49:30 -05:00
[1] Or /dev/input/uinput depending on the OS.
2012-12-11 15:13:57 -05:00
Usage and Configuration
=======================
2012-12-11 15:13:57 -05:00
Configuration is done in Python; examples and other information can be found on
the project website: http://hetgrotebos.org/wiki/uinput-mapper
2012-12-11 15:13:57 -05:00
Bugs
====
2012-12-11 15:13:57 -05:00
None that I am aware of, but if you find some please drop me a mail at
http://wizzup.org. (You can find my email address there)
2012-12-11 15:13:57 -05:00
linux_input.py
==============
2012-12-11 15:13:57 -05:00
Python binding for linux/input.h ; somewhat incomplete.
Included in uinput-mapper ; may be split later
2012-12-11 15:13:57 -05:00
linux_uinput.py
==============
2012-12-11 15:13:57 -05:00
Python binding for linux/uinput.h ; not complete yet.
Included in uinput-mapper ; may be split later
Development notes
=================
Generating uinputmapper/uinput_gen.py:
2013-05-19 07:46:11 -04:00
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