mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
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#1842
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/1831
Author: @potatoe0100
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9966📝 Commits (1)
9a96b8bgameinput: preserve controller transitions between polls📊 Changes
3 files changed (+167 additions, -75 deletions)
View changed files
📝
docs/gameinput.md(+7 -5)📝
runtime/shims/gameinput.cpp(+118 -70)📝
runtime/test/gameinput_test.cpp(+42 -0)📄 Description
Claimed in the coordination issue as: OLD-9966 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162810670)
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.