Repository navigation
Conversation
|
Reviewed 4e38cbe: checked statically (the shim builds only on Windows, no repo test covers boot.ps1, no pwsh here). LEONIDA_KEYBOARD_PAD=1 is a valid Focused value; scripted presses are written outside the focus-gated block of update_keyboard_pad on the PR base and on main's c68f494 refactor, so a script keeps arriving unfocused, while "always" is what let RIDEV_INPUTSINK raw input reach an unfocused boot - the new default closes a real exposure and is a no-op for no-SDL3 builds (they ignore LEONIDA_KEYBOARD_PAD). One blocker for merging as is: AI-assisted review. Recommendation: Fix first |
…OT-PAD-FOCUS) boot.ps1 set LEONIDA_KEYBOARD_PAD=always whenever it passed an input script, so that the scripted presses arrive while the game window is not focused. Scripted presses run with or without focus in every keyboard-pad mode (docs/gameinput.md, update_keyboard_pad), so `always` only added the machine's physical keyboard and mouse from any window: on a native Windows boot left running while the PC was in use, the person's mouse moves (right stick), clicks (RB) and Backspace (B) reached the title and sent the first-run pages back a page. With LEONIDA_KEYBOARD_PAD=1 the script works as before and physical input counts only through the focused game window. The InputScript help, the harness README's table, runtime/README.md's LEONIDA_INPUT_SCRIPT row and the comment over the script reader say the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4e38cbe to
f550566
Compare
|
@PierreEbele thanks for the review. Rebased onto
Checked: |
Windows 11 Native Verification Report (
|
|
Tested
No blocker from my side. AI-assisted (Claude Code). |
|
Verified by OreoFR — NO RED (no test; the runtime change is a comment)
Game A/B (values only: no captures, logs or game paths leave this machine). The same Prediction (written before the first boot): B logs the same 4 scripted presses as A, so none are lost with Result: scripted input works the same with AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR. |
Claimed in the coordination issue as: BOOT-PAD-FOCUS (#1608 (comment))
What and why
scripts/windows-boot/boot.ps1setLEONIDA_KEYBOARD_PAD=alwayswhenever it passed an input script, so that thescripted presses would arrive while the game window is not focused. Scripted presses already run with or without
focus in every keyboard-pad mode (docs/gameinput.md: "Scripted presses run with or without focus for unattended
runs";
update_keyboard_padapplies them outside the focus gate), soalwaysonly added the machine's physicalkeyboard and mouse from any window.
On a native boot left running while the PC was in use, that fed the person's own mouse moves (right stick), clicks
(RB) and Backspace (B) into the title: it went back a page in the first-run flow and changed the UI text size. With
LEONIDA_KEYBOARD_PAD=1the script works the same and physical input counts only through the focused game window,which is also how docs/gameinput.md describes playing by hand.
Also updated: the
-InputScripthelp, the harness README's table and the comment over the script reader ingameinput.cpp(which said the script neededalways).scripts/run_guest_scene.pykeepsalways(a consoletool has no window of its own).
Tested
Windows 11, RTX 5080, native, retail package, ubiq
main+ this harness setting (set from the shell):LEONIDA_KEYBOARD_PAD=1logged exactly the 84 scripted presses(
gameinput: press ...) and walked the first-run pages to the legal pages.alwayslogged its 13 scripted presses plus 80+ unscripted ones (rsup,rsdown,rb,b,y) from the person using the PC, after which the title was back on the UI text size page.boot.ps1 -DryRunlistsLEONIDA_KEYBOARD_PAD=1with the default script; the script parses under WindowsPowerShell 5.1.
GPUs tested: NVIDIA GeForce RTX 5080, driver 621.24, Windows 11 Pro 26300
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)