To send letter 'a', a HID device sends this scan code: 00 00 04 00 00 00 00 00
.
Value which corresponds to character 'a' is <AC01>
(found in /usr/share/X11/xkb/symbols/us
). According to /usr/share/X11/xkb/keycodes/evdev
, <AC01>
is mapped to by button code 38
(this is what we must get from the device).
evtest /dev/input/event#
shows code 30
. Why?