Skip to content

feat(attackshark): add Attack Shark R5 Ultra support via the shared compax driver - #15

Merged
snekxs merged 8 commits into
OpenMouse-Project:mainfrom
jazzstack:main
Aug 14, 2026
Merged

snekxs merged 8 commits into
OpenMouse-Project:mainfrom
jazzstack:main

Conversation

@jazzstack

Copy link
Copy Markdown
Contributor

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: brand union now includes Attack Shark; new ATTACKSHARK_PRODUCT_IDS; catalog entries for 0x0046 (wired, 1 kHz) and 0x0047 (wireless, 8 kHz), maxDpi 42000, uiFamily attack-shark.
  • src/drivers/mouse-types.ts: Attack Shark added to the brand union.
  • src/compx/codec.ts + src/drivers/lamzu/hid.ts: status 0xa3 (busy, observed in real R5 Ultra captures) is now treated as retryable instead of an error.
  • src/drivers/vendors.ts: attackshark: 0x373e alias 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 check passes, 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.

@snekxs
snekxs merged commit c10ba29 into OpenMouse-Project:main Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants