Scroll to navigation

INPUT_GET_KEYCODE(9) Input Subsystem INPUT_GET_KEYCODE(9)

NAME

input_get_keycode - retrieve keycode currently mapped to a given scancode

SYNOPSIS

int input_get_keycode(struct input_dev * dev, int scancode, int * keycode);

ARGUMENTS

dev

input device which keymap is being queried

scancode

scancode (or its equivalent for device in question) for which keycode is needed

keycode

result

DESCRIPTION

This function should be called by anyone interested in retrieving current keymap. Presently keyboard and evdev handlers use it.

COPYRIGHT

April 2023 Kernel Hackers Manual 2.6.