4f750b9ad1
This patch introduces decoding for evdev ioctls. For EVIOCSFF the five first members are decoded, the union is not. The code was compiled and tested on x86_64 with Linux 3.13. * evdev.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (evdev_ioctl): New prototype. * ioctl.c (ioctl_decode): Call evdev_ioctl for 'E' ioctl commands. * xlat/evdev_autorepeat.in: New file. * xlat/evdev_ff_status.in: New file. * xlat/evdev_ff_types.in: New file. * xlat/evdev_keycode.in: New file. * xlat/evdev_leds.in: New file. * xlat/evdev_misc.in: New file. * xlat/evdev_mtslots.in: New file. * xlat/evdev_prop.in: New file. * xlat/evdev_relative_axes.in: New file. * xlat/evdev_snd.in: New file. * xlat/evdev_switch.in: New file. * xlat/evdev_sync.in: New file. Signed-off-by: Etienne Gemsa <etienne.gemsa@lse.epita.fr> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
261 lines
2.5 KiB
Plaintext
261 lines
2.5 KiB
Plaintext
KEY_RESERVED
|
|
KEY_ESC
|
|
KEY_1
|
|
KEY_2
|
|
KEY_3
|
|
KEY_4
|
|
KEY_5
|
|
KEY_6
|
|
KEY_7
|
|
KEY_8
|
|
KEY_9
|
|
KEY_0
|
|
KEY_MINUS
|
|
KEY_EQUAL
|
|
KEY_BACKSPACE
|
|
KEY_TAB
|
|
KEY_Q
|
|
KEY_W
|
|
KEY_E
|
|
KEY_R
|
|
KEY_T
|
|
KEY_Y
|
|
KEY_U
|
|
KEY_I
|
|
KEY_O
|
|
KEY_P
|
|
KEY_LEFTBRACE
|
|
KEY_RIGHTBRACE
|
|
KEY_ENTER
|
|
KEY_LEFTCTRL
|
|
KEY_A
|
|
KEY_S
|
|
KEY_D
|
|
KEY_F
|
|
KEY_G
|
|
KEY_H
|
|
KEY_J
|
|
KEY_K
|
|
KEY_L
|
|
KEY_SEMICOLON
|
|
KEY_APOSTROPHE
|
|
KEY_GRAVE
|
|
KEY_LEFTSHIFT
|
|
KEY_BACKSLASH
|
|
KEY_Z
|
|
KEY_X
|
|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