GameInput: enforce statusFilter in RegisterDeviceCallback (#1489) #1603
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1603
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1603"
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?
@hajduzsolt on GitHub · 2026-11-24 18:08 UTC · original
hajduzsolt:gameinput/register-device-callback-status-filter→main· +32 −2 · 1 files · 1 commits · openEnforces statusFilter in IGameInput::RegisterDeviceCallback so callbacks only fire when (filter & STATUS) != 0. Part of #1489.
What is in it
filter & STATUS != 0inregister_device_callbackbefore invoking or spawning the enumeration callback.register_device_callback_enforces_status_filterverifyingfilter == 0and non-matching status bits do not invoke the callback while matching bits invoke it withSTATUS.Tested
rustc 1.98.1(48a229cea 2026-09-01), debug (cargo test).cargo test -p xcl --lib hle::gameinput::tests -- --test-threads=2: 10 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=2: 777 passed, 0 failed, 41 ignored (xcl --lib: 728 passed, 0 failed, 21 ignored; integration/e2e suites: 49 passed, 0 failed, 20 ignored).SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.Regression run
main:
PR:
Not tested
AI use
register_device_callback, wrote unit test, ran the workspace test suite, and drafted commit and PR description.@DavidM1911 on GitHub · 2026-11-24 20:22 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@throny on GitHub · 2026-11-25 18:10 UTC · original
Two contributors checked independently and found that #1784 solves the same problem (for #1488) in a different way: #1607, group D92. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.