You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 years ago | |
---|---|---|
c | 10 years ago | |
configs | 10 years ago | |
gentoo/sys-apps/uinput-mapper | 10 years ago | |
keymaps | 8 years ago | |
misc | 6 years ago | |
uinputmapper | 8 years ago | |
.gitignore | 10 years ago | |
COPYING | 10 years ago | |
Makefile | 10 years ago | |
README.rst | 8 years ago | |
input-create | 10 years ago | |
input-read | 6 years ago | |
input-replay | 10 years ago |
README.rst
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.
Usage and Configuration
=======================
Configuration is done in Python; examples and other information can be found on
the project website: http://hetgrotebos.org/wiki/uinput-mapper
Bugs
====
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)
linux_input.py
==============
Python binding for linux/input.h ; somewhat incomplete.
Included in uinput-mapper ; may be split later
linux_uinput.py
==============
Python binding for linux/uinput.h ; not complete yet.
Included in uinput-mapper ; may be split later
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