Repository navigation
test(libSceConvertKeycode): compare packet and direct modifier conversion - #24628
Merged
oneandonlydean merged 1 commit intoNov 21, 2026
Conversation
MarcZX10
approved these changes
Nov 21, 2026
MarcZX10
left a comment
Contributor
There was a problem hiding this comment.
Reviewed — looks good
The added test compares packet and direct key conversion for the stated layouts, modifiers, LED states, and three key positions; no defect was evident in the reviewed change.
What I ran
- Reviewed head
3e4561425a20f4ece2c5ea04af66d0b3d936601busingrepo_read.py. - No build or test commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | Added consistency assertions inspected |
| Build and tests | not run | No execution performed |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and runtime behavior were not independently verified. The only changed file, core/libs/tests/GuestConvertKeycode.cpp, was read; no files were excluded by the manifest. The author-reported Linux and Windows test runs were not independently confirmed.
To get this to a good state
Nothing is required.
12 tasks done
This was referenced Nov 21, 2026
Open
Merged
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds the #24622 consistency check to
guest_convert_keycode: for nine keyboard layouts, three modifier values and four LED states, three packet keys at positions 0, 1 and 2 must convert to the same character throughsceConvertKeycodeGetCharacter(direct) andsceConvertKeycodeGetCharacterFromKeyboardData(packet). That is 324 comparisons, including the modifier and LED state that the direct call takes as one word.Tested
guest_convert_keycode_testsbuilt and passed on Linux (GCC 11.4).python tools/check_conventions.py --base origin/mainpasses.This adds coverage only; it changes no production code.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository