Add wrapper for global GUI keyboard support. #1253
Merged
+25
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a keyboard wrapper library
We're now at the point where we need some level of graphical keyboard within our own bins (for example, tweaks for tGeckos new menus for about/wifi).
This PR will include the library for allow this, built from Aemii's C++ search filter source (Which means it's separate, PR for that repo to follow).
The keyboard has to be a library as it's C++ but the wrapper works well, it's fast and it returns the value cleanly, returning you back to the tweaks menu stack once complete.
As part of this it also releases the A button in Tweaks event loop, if you do not release this it stays pressed. When you return out of the wrapper the button is still pressed, take this into account in your event loops.
How to use it in your feature (If it's in tweaks):
#include "components/kbinput_wrapper.h"
actions.h
that will return the keyboards output, eg:How to use it in your feature (If it's not in tweaks):
Example of keyboard called from menu item and output printed to terminal:
20231030212844.mp4