Repository navigation
Conversation
IGameInput::RegisterDeviceCallback's statusFilter was ignored: the callback always reported all of the gamepad's statuses (connected, input enabled, output enabled, synchronized). A title that asked for one of them - or only for output enabled, to decide whether rumble works - was told about every status, and a filter the device does not match (a wired connection on a wireless pad) still produced a callback. Report the statuses the device has that the filter names; a filter it matches none of calls nothing. Assisted-by: OpenCode (Gemini 4 Neon)
7046ac0 to
9b8c3de
Compare
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1784 — GameInput compatibility verificationTested clean checkout Environment STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, Tested
Failures and skips
Not tested A AI use T3 Code / Codex ( |
Addresses
XCL-BT-027from #1488.IGameInput::RegisterDeviceCallbacktakes astatusFilter(aGameInputDeviceStatusmask) and ignored it (_filter): the callback always reported every status the gamepad has — connected, input enabled, output enabled, synchronized (0x47). A title that asked for one status (sayOutputEnabled, to decide whether rumble works) was told about all of them, and a filter the device matches none of (a wired-only status on a wireless pad) still got a callback it should not see.This reports
STATUS & filter— the statuses the device has that the caller asked for — and calls nothing when the filter matches none of them.What is in it
crates/xcl/src/hle/gameinput.rs:register_device_callbackhonoursstatusFilteron both the blocking and the async enumeration paths; add testa_device_callback_reports_only_the_statuses_it_asked_for(connected →0x1, input+output →0x6, a status the device does not have → no callback). Fails onmainwithleft: 71, right: 1.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 893 passed, 0 failed, 42 ignored (SKIPPED: 2no wave64; 1no heap windows; 1cannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib gameinput: 10 passed, 0 failedRegression run
main (
e9e94ce, clean tree, no local changes):PR (
9b8c3de, clean tree, no local changes):Not tested
AI use
XCL-BT-027againstregister_device_callback, wrote the fix and test (and confirmed it fails without it), rebased ontoe9e94ce, ran the test suite andscripts/smoke.ps1regression runs with Scripts: smoke blocks print the game folder's name #677's title hashing, and drafted this PR description.