Repository navigation
runtime: the first-run UI keyboard pad reads keys only with focus (RT-FIRST-RUN-PAD-FOCUS) - #1612
Conversation
…-FIRST-RUN-PAD-FOCUS) gta6rt --first-run-ui defaulted LEONIDA_KEYBOARD_PAD to always, so keys typed into another program reached the title's consent pages (ProjectLeonida#1552, hazard 1). Default to the focused mode 1; scripted presses still run while the window is unfocused. tiny_game checks the default under run_tiny_first_run_ui, which now clears the caller's setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Windows validation at CTest passed 4/4 across
Windows 11 Pro 26H2 (26300.9974), MSVC 19.52.37029.0, and repository-pinned SDL 3.4.20. Used the synthetic |
Keep main's first-run profile without GPU completion labels and this branch's focused keyboard pad (LEONIDA_KEYBOARD_PAD=1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Brought up to date with Tested on Windows 11 (RelWithDebInfo), runtime tests only, no game boot:
AI-assisted (Claude Code). |
|
Merged, thanks! Tested
AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: RT-FIRST-RUN-PAD-FOCUS (#1608 (comment))
What and why
gta6rt --first-run-uisetLEONIDA_KEYBOARD_PAD=alwaysas part of its profile (configure_first_run_uiinruntime/src/main.cpp). In that mode the keyboard pad reads the physical keyboard whatever has focus, so keys typed into another program reach the title. On a first-run consent page an Enter could tick a box in the user's name. This is hazard 1 of #1552.The profile now uses the focused mode
1. Keys count only while the title window has focus. Scripted presses (LEONIDA_INPUT_SCRIPT) still run while the window is unfocused (runtime/shims/gameinput.cpp, theactivegate in the pad poll). If the caller setsLEONIDA_KEYBOARD_PADexplicitly, that setting still wins.runtime/src/main.cpp: change the default fromalwaysto1.runtime/test/fixtures/tiny_game.cpp: the first-run branch checks thatLEONIDA_KEYBOARD_PADis1.runtime/CMakeLists.txt:run_tiny_first_run_uiclearsLEONIDA_KEYBOARD_PAD, so the caller's shell can't mask the default.docs/first_run_ui.md: says the pad is in its focused mode.Out of scope: the
boot.ps1side (#1609, RT-KEYBOARD-PAD-SCRIPT) and the shim's own default (#1528). This PR doesn't touch either.Tested
Windows 11, RTX 4070 SUPER (NVIDIA 621.01), MSVC. No game files.
ctest -R "run_tiny_first_run_ui|run_tiny_game$": 2/2 pass.LEONIDA_KEYBOARD_PAD=alwaysset by the caller, tiny_game printsFAIL first-run UI keyboard pad reads keys only with focus. So the check catches the old default.scripts/check_no_game_data.pyon the changed files: clean.AI-assisted (Claude Code).
GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.01, Windows 11
AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code