mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1612] [MERGED] runtime: the first-run UI keyboard pad reads keys only with focus (RT-FIRST-RUN-PAD-FOCUS) #1627
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#1627
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/1612
Author: @Tyrannys
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:first-run-pad-focus📝 Commits (2)
7f08453runtime: the first-run UI keyboard pad reads keys only with focus (RT-FIRST-RUN-PAD-FOCUS)0309692Merge main into first-run-pad-focus📊 Changes
4 files changed (+6 additions, -3 deletions)
View changed files
📝
docs/first_run_ui.md(+1 -1)📝
runtime/CMakeLists.txt(+1 -1)📝
runtime/src/main.cpp(+3 -1)📝
runtime/test/fixtures/tiny_game.cpp(+1 -0)📄 Description
Claimed in the coordination issue as: RT-FIRST-RUN-PAD-FOCUS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154210350)
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.