diff options
| author | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-24 23:54:31 -0600 |
|---|---|---|
| committer | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-24 23:54:31 -0600 |
| commit | 7f08453da77d282924c09b6dc2ac51d69a369547 (patch) | |
| tree | 38f8840de338c14c4b7034775e8183e04f759b6b /runtime/src/main.cpp | |
| parent | 42537e7b6f84c233ac009b924d3a25d2a1178197 (diff) | |
runtime: the first-run UI keyboard pad reads keys only with focus (RT-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 (#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>
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index 8e3767740..a108a20fd 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -173,7 +173,9 @@ bool configure_first_run_ui(const std::filesystem::path& package, std::filesyste | |||
| 173 | {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"}, | 173 | {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"}, |
| 174 | {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"}, | 174 | {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"}, |
| 175 | {L"LEONIDA_GPU_LABELS", L"1"}, {L"LEONIDA_FRAME_PACING", L"1"}, | 175 | {L"LEONIDA_GPU_LABELS", L"1"}, {L"LEONIDA_FRAME_PACING", L"1"}, |
| 176 | {L"LEONIDA_KEYBOARD_PAD", L"always"}, | 176 | // Focused, not always: keys typed into another window must not press anything on a consent page. |
| 177 | // Scripted presses (LEONIDA_INPUT_SCRIPT) still run while the window is unfocused. | ||
| 178 | {L"LEONIDA_KEYBOARD_PAD", L"1"}, | ||
| 177 | }; | 179 | }; |
| 178 | for (const auto& setting : settings) { | 180 | for (const auto& setting : settings) { |
| 179 | if (!set_default(setting.name, setting.value)) return false; | 181 | if (!set_default(setting.name, setting.value)) return false; |