Keypad driver does not input character with input_report_key()
0
votes
1
answer
132
views
I am trying to create Linux input device driver and to test things I took at existing [gpio-matrix-keypad](https://elixir.bootlin.com/linux/latest/source/drivers/input/keyboard/matrix_keypad.c#L158) driver. Using print I know that
input_report_key()
is called with correct keycode, but it doesn't put a correct character under the cursor.
-c
pr_info("Print: %d\n", keycodes[code]);
input_report_key(input_dev, keycodes[code], new_state[col] & (1 << row));
Also I work with BeagleBone Black using minicom
. It seems that kernel is built with required for input options enabled, e.g. CONFIG_INPUT
and CONFIG_INPUT_KEYBOARD
.
Asked by MegaRaman
(3 rep)
Apr 27, 2024, 06:04 PM
Last activity: May 2, 2024, 12:54 PM
Last activity: May 2, 2024, 12:54 PM