Advance scripted input and improve boot diagnostics #2372

Manually merged
github merged 2 commits from github-bot/gh-2372 into main 2026-11-26 18:35:48 +00:00 AGit
Owner

@⁠ZroIsHere on GitHub · 2026-11-26 16:21 UTC · original
ZroIsHere:pr/gameinput-scripted-clock → main · +96 −13 · 4 files · 2 commits · merged 2026-11-26 18:30 UTC

## Summary

  • Advance scripted input on an 8 ms clock in builds without SDL3, retaining state edges for GetNextReading.
  • Report exact A-button readings in optional input statistics and make the first 128 reading calls visible with input tracing.
  • Add a -FirstRunUi option to the Windows boot script.

Validation

  • Built gta6rt with SDL3 and without SDL3.
  • Ran the first-run profile with timed A presses; logs recorded A in readings and captured frames advanced from the splash to the profile selector and intro artwork.
  • git diff --check
  • Tests not run.
**@⁠ZroIsHere** on GitHub · 2026-11-26 16:21 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2372) `ZroIsHere:pr/gameinput-scripted-clock` → `main` · +96 −13 · 4 files · 2 commits · merged 2026-11-26 18:30 UTC ## Summary - Advance scripted input on an 8 ms clock in builds without SDL3, retaining state edges for `GetNextReading`. - Report exact A-button readings in optional input statistics and make the first 128 reading calls visible with input tracing. - Add a `-FirstRunUi` option to the Windows boot script. ## Validation - Built `gta6rt` with SDL3 and without SDL3. - Ran the first-run profile with timed A presses; logs recorded A in readings and captured frames advanced from the splash to the profile selector and intro artwork. - `git diff --check` - Tests not run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:23:16 +00:00
github-bot changed title from Advance scripted input clock without SDL3 to Advance scripted input and improve boot diagnostics 2026-11-26 16:52:21 +00:00
github manually merged commit 95d18113f3 into main 2026-11-26 18:35:48 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-26 18:30 UTC · original

Merged through the integration PR #2395, together with #2315.

Changed on top, in one maintainer commit:

  • The 8 ms clock thread is replaced. update() now adds one reading for every start and end of a scripted press since the last update, stamped with the script's time. A press that begins and ends between two reads of the title is still in the history for GetNextReading. The readings no longer depend on how often a thread gets scheduled, and no thread runs.
  • LEONIDA_INPUT_TRACE is documented in docs/gameinput.md and runtime/README.md, as tests/test_docs_env_vars.py requires.
  • gameinput_no_sdl_script has a new y@10 press that the test never reads while it is down. It fails on main and passes with the change.
  • The trace lines, the A count in LEONIDA_INPUT_STATS and -FirstRunUi in boot.ps1 are kept as you wrote them.

Thank you for the trace and the boot-script option.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

**@⁠aslan2142** on GitHub · 2026-11-26 18:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2372#issuecomment-7200535763) Merged through the integration PR #2395, together with #2315. Changed on top, in one maintainer commit: - The 8 ms clock thread is replaced. `update()` now adds one reading for every start and end of a scripted press since the last update, stamped with the script's time. A press that begins and ends between two reads of the title is still in the history for `GetNextReading`. The readings no longer depend on how often a thread gets scheduled, and no thread runs. - `LEONIDA_INPUT_TRACE` is documented in `docs/gameinput.md` and `runtime/README.md`, as `tests/test_docs_env_vars.py` requires. - `gameinput_no_sdl_script` has a new `y@10` press that the test never reads while it is down. It fails on `main` and passes with the change. - The trace lines, the `A` count in `LEONIDA_INPUT_STATS` and `-FirstRunUi` in `boot.ps1` are kept as you wrote them. Thank you for the trace and the boot-script option. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
This discussion has been locked. Commenting is limited to contributors.
No description provided.