nuttx/drivers/virtio
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
..
CMakeLists.txt virtio and vhost-rpmsg: add virtio and vhost rpmsg device support 2026-01-19 14:18:27 +08:00
Kconfig drivers/virtio and vhost: auto-select parent config from sub-drivers 2026-02-04 02:32:02 +08:00
Make.defs virtio and vhost-rpmsg: add virtio and vhost rpmsg device support 2026-01-19 14:18:27 +08:00
virtio-blk.c drivers/: Multiple Drivers Are Registered With World Writable Part 3 2026-07-16 09:49:07 -03:00
virtio-blk.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-gpu.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-gpu.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-input.c drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
virtio-input.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-mmio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-net.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-net.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-pci-legacy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-pci-modern.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-pci.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-pci.h virtio/virtio-pci: add PCI INTX interrupt fallback support 2026-01-28 13:09:19 -03:00
virtio-rng.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
virtio-rng.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-rpmb.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
virtio-rpmb.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-rpmsg.c virtio and vhost-rpmsg: add virtio and vhost rpmsg device support 2026-01-19 14:18:27 +08:00
virtio-rpmsg.h virtio and vhost-rpmsg: add virtio and vhost rpmsg device support 2026-01-19 14:18:27 +08:00
virtio-serial.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-serial.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio-snd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio-snd.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00