test: add keycodes files which map directly to evdev codes
authorRan Benita <ran234@gmail.com>
Thu, 27 Sep 2012 18:16:12 +0000 (20:16 +0200)
committerRan Benita <ran234@gmail.com>
Thu, 27 Sep 2012 19:41:54 +0000 (21:41 +0200)
commit92e07726b29d129d2ca793c3614353d35a1a6b40
tree78c15f6e161ff2979970c230f13e75e994d4a3a8
parent32c19f4b449f3c23297621181882cf7143ec666e
test: add keycodes files which map directly to evdev codes

This is a proof-of-concept for the long key names. The keycodes in the
file evdev-xkbcommon are autogenerated from linux/input.h, and uses the
names given there; all of the previous names are aliased to the new
names, so they continue to work with the symbols files, etc.

You can try it with 'sudo ./test/interactive -r evdev-xkbcommon -n 0'
The -n 0 means that we don't offset the evdev scan codes - just feed
them directly. The -r evdev-xkbcommon just means to use a new rules file
which makes us use the new keycodes file. (The only problem I can see is
with the MENU and LSGT names which has some conflicts).

Maybe some day xkeyboard-config could ship something similar, so that
the 8 offset is unneeded.

Signed-off-by: Ran Benita <ran234@gmail.com>
test/data/keycodes/aliases-xkbcommon [new file with mode: 0644]
test/data/keycodes/evdev-xkbcommon [new file with mode: 0644]
test/data/rules/evdev-xkbcommon [new file with mode: 0644]