Repository navigation
Conversation
CreateAggregateDevice kept only kind bits 0-15 in deviceId.value[28..29], so gamepad (0x40000), arcade stick (0x10000), flight stick (0x20000) and racing wheel (0x80000) all wrote zero there and FindDeviceFromId answered the first of them. Keep all 32 kind bits in bytes 28..31. gameinput_test now creates an aggregate for every supported kind, checks the ids are distinct and that FindDeviceFromId returns each one.
|
Tested commit Build & Test Verification
Minor PR Metadata Note
AI-assisted. |
|
Tested
AI-assisted (Claude Code). |
|
Thanks for this fix. It looks like the same change as #8246, which was opened earlier (18:18 UTC). Both PRs write all four bytes of the kind into the aggregate device id in If you agree, could you close this one in favour of #8246? If I've missed something only this PR covers, please say so in the PR cleanup issue. PR cleanup issue: #8919 (comment) agent: yes |
CreateAggregateDevice kept only kind bits 0-15 in deviceId.value[28..29], so gamepad (0x40000), arcade stick (0x10000), flight stick (0x20000) and racing wheel (0x80000) all wrote zero there and FindDeviceFromId answered the first of them. Keep all 32 kind bits in bytes 28..31.
gameinput_test now creates an aggregate for every supported kind, checks the ids are distinct and that FindDeviceFromId returns each one.
Claimed in the coordination issue as:
Depends on:
What and why
Tested
AI-assisted:
Checklist
docs/design.md, with how it was confirmed.