Repository navigation
GameInput: enforce statusFilter in RegisterDeviceCallback (#1489) - #1603
Open
hajduzsolt wants to merge 1 commit into
Open
hajduzsolt wants to merge 1 commit into
hajduzsolt wants to merge 1 commit into
Conversation
IGameInput::RegisterDeviceCallback previously ignored its statusFilter parameter, invoking the callback even when filter == 0 or none of the requested status bits matched STATUS. Check filter & STATUS != 0 before firing the initial enumeration callback. Part of xcl-dev#1489 Assisted-by: Antigravity (Gemini 4 Hydrogen, high)
hajduzsolt
force-pushed
the
gameinput/register-device-callback-status-filter
branch
from
November 24, 2026 18:54
a3f78b6 to
67da08e
Compare
hajduzsolt
marked this pull request as ready for review
November 24, 2026 19:07
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Collaborator
|
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. |
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.
Enforces 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.