[core] Moves keymapUS[]
and fixes GetCharPressed
for PLATFORM_DRM
#3498
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.
Changes
Moves the
keymapUS[]
LUT out ofPollKeyboardEvents
(L1457-L1476) toLocal Variables Definition
(R143-R162) so it doesn't have to be redefined every timePollKeyboardEvents()
runs onPLATFORM_DRM
.Adds handling for
CORE.Input.Keyboard.charPressedQueue
andCORE.Input.Keyboard.charPressedQueueCount
(R164-R171, R1533-R1543) that was missing onPLATFORM_DRM
. That was the reason why couldn't type onexamples with type inputs
(e.g.:text_draw_3d
,text_input_box
), since they usedGetCharPressed()
. Therefore, fixes those examples.Note
EvkeyToUnicodeLUT
(R164-R171) is incomplete, I just mapped the most essential keys so we could get this working. If this doesn't get replaced on theDRM
input rework, I'll comeback and finish the LUT.Reference
Enviroment
Edits