Match hardware keyboard input update #47

Merged
coah80 merged 3 commits from codex/ti-hw-keyboard-exact-20260921 into main 2026-09-21 22:57:44 +00:00
coah80 commented 2026-09-21 22:57:36 +00:00 (Migrated from github.com)

Summary

  • match HWKeyboard::updateInput
  • restore the matching translation-unit data and relocation layout

Validation

  • exact function: 488/488 bytes, 100.0%
  • context diff: 122/122 instructions, 0 diffs
  • candidate/reference .data: 288 bytes, identical SHA1
  • pool diff: identical
  • full 43U build passed after integrating PR #46
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Implement HWKeyboard.updateInput assembly routine and add dispatch tables

  • Replaces the placeholder C++ updateInput (which only accessed the sign keyboard and returned true) with a PowerPC assembly implementation that checks manager and modifier state, processes triggered and subsequent key sets, invokes manager callbacks for selected key codes, and runs repeat/trigger/tapping-shift/shift-update routines
  • Adds a typed 0x3f-entry jump table pointing into the wide-character conversion routine and a nine-entry HWKeyboard virtual table (destructor, construction, initialization, command-sender, receiver-update, input-update)
  • Behavioral Change: updateInput now returns false (zero) after processing instead of the placeholder's true; dispatch through the new jump table and vtable symbols targets the listed HWKeyboard routines and conversion-routine offsets

Macroscope summarized a5120f4.

## Summary - match HWKeyboard::updateInput - restore the matching translation-unit data and relocation layout ## Validation - exact function: 488/488 bytes, 100.0% - context diff: 122/122 instructions, 0 diffs - candidate/reference .data: 288 bytes, identical SHA1 - pool diff: identical - full 43U build passed after integrating PR #46 - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Implement `HWKeyboard.updateInput` assembly routine and add dispatch tables > - Replaces the placeholder C++ `updateInput` (which only accessed the sign keyboard and returned `true`) with a PowerPC assembly implementation that checks manager and modifier state, processes triggered and subsequent key sets, invokes manager callbacks for selected key codes, and runs repeat/trigger/tapping-shift/shift-update routines > - Adds a typed 0x3f-entry jump table pointing into the wide-character conversion routine and a nine-entry `HWKeyboard` virtual table (destructor, construction, initialization, command-sender, receiver-update, input-update) > - Behavioral Change: `updateInput` now returns `false` (zero) after processing instead of the placeholder's `true`; dispatch through the new jump table and vtable symbols targets the listed HWKeyboard routines and conversion-routine offsets > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized a5120f4.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.