Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiiu: add USB keyboard support #83

Open
wants to merge 2 commits into
base: wiiu-sdl2-2.28
Choose a base branch
from

Conversation

mrpapersonic
Copy link

@mrpapersonic mrpapersonic commented Oct 6, 2024

This PR adds USB keyboard support via the nsyskbd library. All of the keyboard code is consolidated into SDL_wiiukeyboard.c.

The Wii U doesn't provide an easy way to just poll for keyboard events, so I put in a "event queue" of sorts that gets processed when events are polled. The queue is hardcoded to a maximum of ten events (but can be changed easily). It may not even be necessary to do it that way anyway, since the keyboard code will only realistically be called by that thread, but I'd rather be safe than sorry.

@mrpapersonic mrpapersonic marked this pull request as ready for review October 7, 2024 01:00
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.

1 participant