Repository navigation
feat: add Redragon Predator M612 support - #146
Merged
Merged
Conversation
Adds the Predator M612 (04d9:fc61) to the Redragon driver. It shares the M724 transport but answers F2 reads, so values are read from the mouse and every write is read back. Supports DPI stages, active stage, polling rate, onboard profiles, lighting (static, breathing, spectrum breathing, wave, off; colour, speed, brightness), and button remapping (mouse, scroll, DPI/profile/ polling/lighting actions, shortcuts, keyboard keys). All verified on hardware; evidence in docs/redragon-m612-testing.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
yes i did use ai to code it but i thoroughly tested it and i understand what it does |
Contributor
Author
|
yawn |
|
🎉 This PR is included in version 0.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 Redragon Predator M612 (
04d9:fc61, wired, Holtek, bcdDevice 1.10) to the Redragon driver. It uses the same transport as the M724 K1NG 1K, but unlike the M724 it answers reads, so every value is read from the mouse and every write is read back before it is reported as done.Supported, all verified on hardware
Only Redragon files change.
RedragonHidClient's constructor returns aRedragonM612HidClientsubclass for0xfc61, so the registry, filters, and shared types are untouched. The M724 path sends the same bytes as before, and its tests are unchanged. If you'd rather have a separate registry entry, that's a small change.Evidence
[02 F3 addrLo addrHi len 00 00 00 data]; the read[02 F2 addrLo addrHi len](the command byte comes from dokutan/mouse_m908's M908 reader) answers on the next GET_FEATURE.captures/redragon-m612/openmouse-hardware-test.json). Live effects were confirmed from usbmon interrupt-IN data:04, Ctrl+06, wheel -1, the mouse's DPI-stage report, nothing when disabled).Details, the settings map, and per-feature evidence:
docs/redragon-m612-testing.md.Not included
MouseLightingMode, so it reads as no mode.Checks
npm run check: all tests pass, including 25 new M612 tests insrc/drivers/redragon/m612.test.ts.npm run checkagainst this package passes.No OpenMouse change is required. Optionally, the supported-devices page could move "PREDATOR M612" from Driver Needed to Supported (
pids: [0xfc61]).🤖 Generated with Claude Code