struct input_keymap_entry — used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls
struct input_keymap_entry { #define INPUT_KEYMAP_BY_INDEX (1 << 0) __u8 flags; __u8 len; __u16 index; __u32 keycode; __u8 scancode[32]; };
allows to specify how kernel should handle the request. For
example, setting INPUT_KEYMAP_BY_INDEX flag indicates that kernel
should perform lookup in keymap by index
instead of scancode
length of the scancode that resides in scancode
buffer.
index in the keymap, may be used instead of scancode
key code assigned to this scancode
scancode represented in machine-endian form.