Skip to content

test(libSceConvertKeycode): compare packet and direct modifier conversion - #24628

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
relativespace2K:test/24622-keycode-packet-modifiers
Nov 21, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
relativespace2K:test/24622-keycode-packet-modifiers

Conversation

@relativespace2K

Copy link
Copy Markdown
Contributor

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 through sceConvertKeycodeGetCharacter (direct) and sceConvertKeycodeGetCharacterFromKeyboardData (packet). That is 324 comparisons, including the modifier and LED state that the direct call takes as one word.

Tested

  • guest_convert_keycode_tests built and passed on Linux (GCC 11.4).
  • @1tsethan ran all 324 comparisons in a focused Windows harness with the library's actual conversion code and guest-memory shims; all passed.
  • python tools/check_conventions.py --base origin/main passes.

This adds coverage only; it changes no production code.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: Fixes libSceConvertKeycode: cover packet modifiers across keyboard layouts #24622
  • Unblocks: none
  • GPUs tested: none (test uses no GPU)
  • AI-assisted: yes

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 3e4561425a20f4ece2c5ea04af66d0b3d936601b using repo_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.

@oneandonlydean
oneandonlydean merged commit f4f3eaf into boykopovar:main Nov 21, 2026
13 checks passed
This was referenced Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix error Closes an issue (Fixes #N)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libSceConvertKeycode: cover packet modifiers across keyboard layouts

3 participants