mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-05 14:19:05 +00:00
The terminal had three input sources to choose from, and its own help text explained why: the physical keyboard options "differ in the data the keyboard device delivers on read(), so pick the one that matches the hardware". That is the abstraction leaking. A user had to know that the keyboard was USB rather than a matrix in order to compile the terminal, and swapping one for the other meant rebuilding. There are two sources now, touch and physical, and the physical one reads any keyboard registered with keyboard_register(). Which format arrives is decided by INPUT_KEYBOARD_BYTESTREAM, a property of the build rather than of the hardware, so the terminal no longer asks. Cursor keys reported as special events scroll the terminal, which is what a driver following the current contract sends. The out of band codes that the M5Stack Cardputer reports as ordinary presses are still honoured, so that board keeps working until its driver is converted. Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lvglterm.c | ||
| lvglterm.h | ||
| lvglterm_kbd.c | ||
| lvglterm_touch.c | ||
| Make.defs | ||
| Makefile | ||