zephyr/subsys/input
Fabio Baltieri 297faf71d0 input: add two input to hid code translation functions
Add a pair of functions to translate from input events to hid codes,
mapping most of the current hid codes defined in zephyr/usb/class/hid.h.
Use a sparse table for the mapping, which takes advantage of the fact
that code 0 is reserved. Inspired by the linux equivalent hid to input
map:

https://elixir.bootlin.com/linux/latest/source/drivers/hid/hid-input.c#L27

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-24 10:44:40 +01:00
..
CMakeLists.txt input: add two input to hid code translation functions 2024-01-24 10:44:40 +01:00
input_hid.c input: add two input to hid code translation functions 2024-01-24 10:44:40 +01:00
input_keymap.c input: add a keymap driver 2024-01-19 15:14:25 +00:00
input_longpress.c input: longpress: move constant entries pointer to the config struct 2024-01-19 13:49:43 +01:00
input_utils.c input: utils: fix kbd_matrix_state_log types 2024-01-22 11:20:50 +00:00
input.c
Kconfig input: add a keymap driver 2024-01-19 15:14:25 +00:00