upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authoraslan2142 <jan.trencansky@protonmail.com>2026-11-25 20:30:08 +0100
committerGitHub <noreply@github.com>2026-11-25 20:30:08 +0100
commite18b59a5b77a8400f66b71b5f12d713bb12c63e0 (patch)
treeab0c6936ff29ee83ef1b64247f621fa2477d6f34 /runtime/src/main.cpp
parentcee965560c09255fc5294e1a78734f4ed5a9fb84 (diff)
parent03096929f42f6f1fdc687868fd9f9589e48a4b97 (diff)
Merge pull request #1612 from Tyrannys/first-run-pad-focus
runtime: the first-run UI keyboard pad reads keys only with focus (RT-FIRST-RUN-PAD-FOCUS)
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index d386de0cd..094aaa321 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -197,7 +197,9 @@ bool configure_first_run_ui(const std::filesystem::path& package, std::filesyste
197 {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"}, 197 {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"},
198 {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"}, 198 {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"},
199 {L"LEONIDA_FRAME_PACING", L"1"}, 199 {L"LEONIDA_FRAME_PACING", L"1"},
200 {L"LEONIDA_KEYBOARD_PAD", L"always"}, 200 // Focused, not always: keys typed into another window must not press anything on a consent page.
201 // Scripted presses (LEONIDA_INPUT_SCRIPT) still run while the window is unfocused.
202 {L"LEONIDA_KEYBOARD_PAD", L"1"},
201 }; 203 };
202 for (const auto& setting : settings) { 204 for (const auto& setting : settings) {
203 if (!set_default(setting.name, setting.value)) return false; 205 if (!set_default(setting.name, setting.value)) return false;