Skip to content

Conversation

@mrpapersonic
Copy link

@mrpapersonic mrpapersonic commented Apr 8, 2024

This adds a new file, SDL_ogckeyboard.c that handles keyboard events using libwiikeyboard. It also converts the 16-bit Unicode symbol from libwiikeyboard into a UTF-8 array if text input is enabled.

Right now some key inputs (e.g. Home, Arrow Keys, etc.) give text inputs even when we don't want them Turns out libwiikeyboard stores these in the private area (0xE000-0xFF8F), so they're easy enough to filter out.

@mrpapersonic mrpapersonic marked this pull request as ready for review April 8, 2024 19:58
Copy link
Collaborator

@mardy mardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks great! Just minor nitpicks.

@mardy
Copy link
Collaborator

mardy commented Apr 13, 2024

Thanks, LGTM. I would have squashed the changes from the last commit with the respective commits which introduced the changes, in order not to create "noise" in the git history, but the code looks good to me. I'll leave the final word to @WinterMute :-)

@WinterMute WinterMute merged commit 8378cba into devkitPro:ogc-sdl-2.28 Apr 13, 2024
@WinterMute
Copy link
Member

Good job, thanks for the PR. I've merged this & rebuilt our sdl2 packages so it should be usable with stock now.

WinterMute pushed a commit that referenced this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants