mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
NativeKey calls KeyEventToFocusMoves directly on the input thread, while ProcessHeldKeys iterates heldKeys on the UI thread, which tripped an iterator assert in debug builds. ProcessHeldKeys also dispatched key events mid-iteration, where a handler calling EnableFocusMovement(false) would clear the set under it. Now it collects due repeats under the lock and dispatches them after. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>