uinput-mapper/py
Merlijn Wajer 4323e92a13 More networked code; experimental config support.
read.py now deprecates test.py

I went with optparse rather than argparse to support Python <2.7.
Switching to argparse later should not be that hard.

Configurations still need to be extended with, among other things:

* Name for the device
2013-05-10 11:05:31 +02:00
..
configs More networked code; experimental config support. 2013-05-10 11:05:31 +02:00
README Add classes, more event constants. 2013-04-20 11:54:17 +02:00
cinput.py Minor changes. 2013-04-25 20:52:08 +02:00
create.py More networked code; experimental config support. 2013-05-10 11:05:31 +02:00
ioctlhelp.py Initial work on create/uinput tests. 2013-04-19 01:11:56 +02:00
linux_input.py Basic cloning & config. 2013-04-21 01:46:44 +02:00
linux_uinput.py Extend uinput; replace open with os.open. 2013-04-20 13:24:36 +02:00
mapper.py More networked code; experimental config support. 2013-05-10 11:05:31 +02:00
read.py More networked code; experimental config support. 2013-05-10 11:05:31 +02:00

README

Generate:
- input.h constants ; macros:
    - EV_*
    - KEY_*
    - BTN_*
    - REL_*
    - ABS_*

    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


    Lambas for EVIO*


- uinput