linguini1 opened a new pull request, #18949: URL: https://github.com/apache/nuttx/pull/18949
## Summary The previous implementation just passed X11 key codes to the NuttX keyboard driver, which only really worked correctly for the letter keys. Now, special keys are translated into the NuttX codec (like Enter, arrow keys, etc.) so that they can be used properly by NuttX applications relying on keyboard input. Tangentially related to GSoC #18507, the milestone including user applications like DOOM. ## Impact Keyboard device on the Simulator works like expected now. ## Testing Tested while porting DOOM (https://github.com/linguini1/NXDoom) and adding keyboard input. Before: Keys like Enter had codes like `65307`, and my switch case using the NuttX key coded could not handle this. After: Enter appears as `KEYCODE_ENTER` and my input to DOOM works as expected. Here's a screenshot of the game play: <img width="1022" height="891" alt="image" src="https://github.com/user-attachments/assets/e906eca2-da62-43be-816b-7ee76f414ad1" /> ### Question: Does anyone know if the NuttX keyboard codec has support for the ESCAPE key, or if I can add it? Right now there's no way for me to exit the menus in DOOM once I'm in them :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
