mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1843] [MERGED] RT-INPUT-SCRIPT-NO-SDL3: scripted input in builds without SDL3 #1855
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#1855
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/1843
Author: @aslan2142
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:rt-input-script-no-sdl3📝 Commits (1)
c68f494RT-INPUT-SCRIPT-NO-SDL3: serve LEONIDA_INPUT_SCRIPT without SDL3📊 Changes
10 files changed (+1174 additions, -149 deletions)
View changed files
📝
docs/README.md(+1 -1)📝
docs/gameinput.md(+45 -5)📝
docs/linux_proton.md(+6 -3)📝
runtime/CMakeLists.txt(+4 -1)📝
runtime/README.md(+7 -1)📝
runtime/shims/gameinput.cpp(+47 -124)📝
runtime/shims/gameinput_no_sdl.cpp(+641 -3)➕
runtime/shims/gameinput_no_sdl.h(+12 -0)➕
runtime/shims/gameinput_script.h(+180 -0)📝
runtime/test/gameinput_no_sdl_test.cpp(+231 -11)📄 Description
Claim:
RT-INPUT-SCRIPT-NO-SDL3(https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162247285)What and why
A build without SDL3, such as the CI's Windows artifacts and offline builds, served GameInput with no devices. The title therefore waited at its first "press A" prompt forever; cxchhh's and slauko's findings in #14 describe this. This complements #1528 (
INPUT-OUT-OF-THE-BOX), which makes SDL3 the default formake_game.pybuilds. This PR covers the builds that still lack SDL3.LEONIDA_INPUT_SCRIPTset,runtime/shims/gameinput_no_sdl.cppserves one pad.FindDeviceFromId.GetCurrentReading/GetNextReading/GetPreviousReadingreturn gamepad and UI-navigation state that follows the script.runtime/shims/gameinput_script.h, shared by both shims. Nothing in it needs SDL.gameinput.cppchecks the SDL button numbers at compile time.runtime/README.md,docs/gameinput.md,docs/linux_proton.mdanddocs/README.md.Tested
gameinput_no_sdl_script: fake clock, device callbacks, readings at chosen times, history.gameinputandgameinput_scriptstill pass after the refactor.check_no_game_data.pyall pass.a@40,a@70,a@100logged three presses, and the title went from its landing page into its first-run settings pages.mainwith SDL3 and the same script, end on their own a few minutes later with exit 0 and no runtime message. It is being looked at separately.AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.