Repository navigation
feat(attackshark): add Attack Shark R5 Ultra support via the shared compax driver - #15
Merged
Merged
Conversation
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.
Adds the Attack Shark R5 Ultra (VID 0x373e, PIDs 0x0046 wired / 0x0047 wireless) to the existing shared Lamzu CompX ODM driver, following the CRDRAKO convention.
Changes:
src/lamzu/index.ts:brandunion now includesAttack Shark; newATTACKSHARK_PRODUCT_IDS; catalog entries for 0x0046 (wired, 1 kHz) and 0x0047 (wireless, 8 kHz), maxDpi 42000, uiFamilyattack-shark.src/drivers/mouse-types.ts:Attack Sharkadded to the brand union.src/compx/codec.ts+src/drivers/lamzu/hid.ts: status0xa3(busy, observed in real R5 Ultra captures) is now treated as retryable instead of an error.src/drivers/vendors.ts:attackshark: 0x373ealias and a note on the shared 0x373e ODM filter.src/drivers/lamzu/hid.test.ts: R5 Ultra wireless/wired decode, busy-status retry, catalog tests.Verification:
npm run checkpasses, 360/360 tests.Note: maxDpi/DPI-step/debounce/sleep/polling values are spec-derived and not yet confirmed on hardware; only the battery command was validated against real captures.