Decompile hardware keyboard input dispatch #701
Reference in New Issue
Block a user
Delete Branch "agent/bittle/hw-input-cpp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace the 122-instruction hardware-keyboard updateInput assembly with readable C++. It checks sign-window activity, processes control-key OK/cancel shortcuts, then repeat/trigger/shift-tapping handlers and shift state. The existing controlKeyTriggeredHandler declaration is corrected to return bool and accept HKBManager by reference, matching its inlined use. Remove nine obsolete assembly-only extern aliases.
Shared header: include/keyboard/tiHwKeyboard.h changes only that private nonvirtual helper declaration. No field layout or virtual ordering changes. The helper is a normal inline C++ implementation; no assembly, forced-register or undefined-value workaround added.
Fresh verification on
3c9af06f(includes #700):No aggregate matching/link score gain claimed because the prior assembly was already exact; data-score caveat remains as documented in #698. Left for Cole's review and merge.
Rebased unchanged patch onto
426555a3after main advanced during publication. Fresh full all_source/progress/report/ok and DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d pass; all unit/global measures identical to fresh main. New headfb2b60534b, tested tree70a766569b.Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.