Repository navigation
gameinput: preserve controller transitions between polls (OLD-9966, carries #233) - #1831
Merged
Merged
Conversation
… output (BCPACK-TOOL-HARDENING)
potatoe0100
force-pushed
the
carry/old-9966
branch
from
November 25, 2026 13:25
d634b66 to
9a96b8b
Compare
…-hardening bcpack_tool: single-pass profile, history overwrite guard, and atomic output (BCPACK-TOOL-HARDENING)
…input_test.cpp) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Verified by OreoFR Run 1 (nat04)
Run 2 (lot 4)
Run 3 (lot 4 bis)
All runs
AI-assisted (Claude Code, Claude Opus 5.5). |
Contributor
Windows 11 Native Verification Report (
|
Collaborator
|
Merged. Tested by @zmasi on head 2f99fd2 (CPU only (Windows 11 x64, SDL 3.4.20)): red: gameinput_test vs main gameinput.cpp fails 2 buffered-input checks; green 392 checks 0 failures. The CI jobs that are red on this head were also red on main at the time of the run. Thanks @potatoe0100! AI-assisted: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: OLD-9966 (#1608 (comment))
What and why
Carries forward
old-pr/9966(draft #233) by @tedin7, rebased onmain0d80bc5dfwith the author's commit. A press and release that both land between two polls used to be lost, because each poll only compared the latest snapshot. Pads that were already open replay their SDL button and axis events in timestamp groups, publishing one reading per group, so the title sees each transition.Rebase notes:
runtime/shims/gameinput.cppconflicted inpoll_once(), wheremainadded theLEONIDA_INPUT_LOGpress log. The branch moves reading publication intopublish_pad_sample(); the press log moved there with it (beforelast_snapis updated), so replayed transitions are logged too.Supersedes draft #233 (its branch can be deleted once this lands).
Tested
VS 2022 (MSVC 19.44) RelWithDebInfo + Ninja with
-DLEONIDA_SDL3_FETCH=ON(sogameinputandgameinput_scriptare built and run, not Disabled).gameinputandgameinput_scriptpass.ctest -j 6: 440 of 440 passed.GPUs tested: NVIDIA GeForce RTX 4060, driver 621.14, Windows 11 Pro 26H2 (build 26300) (no GPU-specific code here)
AI-assisted: yes (Claude Code), by a non-developer tester.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code