nuttx/drivers/input
Pavel Pisa ab4890df16
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
drivers/input: partial fix of indistinguishable ASCII and special keycodes
As analyzed, the NuttX initial keyboard API design uses event
type KBD_SPECPRESS/KBD_SPECREL to deliver special keys
and KBD_PRESS/KBD_RELEASE to deliver ASCII codes.

But it seems that this design choice has not been followed
in virtio-input, goldfish_events and sim_keyboard designs
and result is that external keyboard special keys events
are mapped to KEYCODE_xxx values which start from 0 and
overlaps with ASCII keys.

The issue is tracked under #19527 number.

This set of changes correct events reporting for mentioned
keyboards to report right event type for special keys.

The solution is only partial at this phase.

Virtual and more complex keyboards usually deliver
key pressures as scancodes (key position on keyboard)
and mapping to ASCII for keys which corresponds to letter
and other similar keys lacks mapping of national alphabets,
second row symbols and switch to capital letter according
to modifiers.

Signed-off-by: Pavel Pisa <pisa@fel.cvut.cz>
2026-07-29 22:51:15 -03:00
..
ads7843e.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ads7843e.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ajoystick.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
aw86225.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
aw86225_internal.h arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
aw86225_reg.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
button_lower.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
button_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
CMakeLists.txt drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
cypress_mbr3108.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
djoystick.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ff_dummy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ff_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ft5x06.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ft5x06.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
goldfish_events.c drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
gt9xx.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
Kconfig drivers/mpr121: Add support to MPR121 Capacitive Keypad 2026-04-23 15:56:32 -03:00
keyboard_upper.c drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
kmatrix.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
kmatrix_i2c.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
Make.defs drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
max11802.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
max11802.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mouse_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
mpr121.c drivers/mpr121: Add support to MPR121 Capacitive Keypad 2026-04-23 15:56:32 -03:00
mpr121.h drivers/mpr121: Add support to MPR121 Capacitive Keypad 2026-04-23 15:56:32 -03:00
mxt.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
mxt.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
nunchuck.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
sbutton.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spq10kbd.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
stmpe811.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
stmpe811_adc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_base.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_gpio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_temp.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_tsc.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
touchscreen_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
tsc2007.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
tsc2007.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uinput.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio_key_decode.c drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00