mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-26 11:50:52 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| kbd_main.c | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||