mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #1790] windows-boot: the keyboard pad in focus mode with an input script (BOOT-PAD-FOCUS) #1802
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1802
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1790
Author: @Coderlord
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:boot-pad-focus📝 Commits (1)
4e38cbewindows-boot: the keyboard pad in focus mode with an input script (BOOT-PAD-FOCUS)📊 Changes
3 files changed (+6 additions, -4 deletions)
View changed files
📝
runtime/shims/gameinput.cpp(+1 -1)📝
scripts/windows-boot/README.md(+1 -1)📝
scripts/windows-boot/boot.ps1(+4 -2)📄 Description
Claimed in the coordination issue as: BOOT-PAD-FOCUS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162053010)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.