nuttx-apps/system/kbd
Jorge Guzman ad2242d812 system/kbd: add a keyboard dump that reads any keyboard
The hidkbd and keyboard examples do the same thing for one kind of
keyboard each:  hidkbd reads a USB HID keyboard as a byte stream, and
keyboard reads an upper half keyboard as events.  Neither works with the
other, so bringing up a new keyboard means picking the right example
first, and there is no answer for somebody whose keyboard is neither.

Every keyboard registered with keyboard_register() is read the same way,
so one tool covers them all:  USB HID, matrix, simulator, virtio, VNC.

The payload follows INPUT_KEYBOARD_BYTESTREAM rather than a switch of
its own.  An application has no business knowing what hardware is behind
the device, and a build cannot mix the two formats anyway.

The two examples stay for now.  They are what the in-tree configurations
still name, and removing them has to wait until those configurations
have been moved over.

Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2026-08-01 11:13:11 -03:00
..
CMakeLists.txt system/kbd: add a keyboard dump that reads any keyboard 2026-08-01 11:13:11 -03:00
kbd_main.c system/kbd: add a keyboard dump that reads any keyboard 2026-08-01 11:13:11 -03:00
Kconfig system/kbd: add a keyboard dump that reads any keyboard 2026-08-01 11:13:11 -03:00
Make.defs system/kbd: add a keyboard dump that reads any keyboard 2026-08-01 11:13:11 -03:00
Makefile system/kbd: add a keyboard dump that reads any keyboard 2026-08-01 11:13:11 -03:00