Uh oh!
There was an error while loading. Please reload this page.
razer: add Cobra wired mouse support (hardware-verified) - #66
Merged
Conversation
jazzstack
commented
Aug 10, 2026
ContributorAuthor
verified on real hardware by discord user thomas shelby (735169170907594784) and ticket id link : https://discordapp.com/channels/1531814042421952644/1536377385589407806 ![]() ![]() |
# Conflicts: # build/check-bundle-size.ts # src/ui/device-images.ts
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.


Summary
Adds support for the Razer Cobra wired mouse (
1532:00a3) through a new dedicated driver in@openmouse/protocol(RazerCobraHidClient), plus the control wiring, device art, a preview fixture, and the CI install fixes needed to fetch the protocol package.Hardware-verified by an owner of the device. The confirmed command table lives in
docs/razer-testing.mdin the protocol repo.What's included
RazerCobraHidClientinsrc/drivers/razer/cobra-hid.ts. Covers effects and colour only, no brightness. Reads answer on transaction id0xff; extended-matrix effect writes answer on0x1f, including breathing (OpenRazer lists breathing on0x3f, which the hardware does not match). DPI 100–8500, polling 125/500/1000 Hz, single Logo LED zone.RazerCobraHidClientis accepted and activated like the other Razer clients.1532:00a3maps to/devices/razer-cobra.webp.?preview=razer-cobrarenders the Cobra status.allow-gitpolicy is set toall, so CI (Vercel) can install the protocol package under npm 11's security defaults.Base commits
This branch also carries four earlier commits from
dev(custom colour picker tab, viper mini device art, bundle budget raise) that the Cobra work sits on top of.Testing
tsc --noEmit,vite build, and all 32 tests pass.0x1f(including breathing).