UMBRA-12: Add DeviceSpecs for the Cobra Pro (wired + wireless) #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cobra-pro-devicespecs-UMBRA-12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
UMBRA-12: Add DeviceSpecs for the Cobra Pro (wired + wireless)
Registers the two Cobra Pro PIDs from OpenRazer's
razermouse_driver.h, each as its ownDeviceSpecfile undercrates/umbra-hid/src/models/and wired into theSUPPORTEDtable:The Pro is the battery-bearing, multi-zone sibling of the wired-only base
cobra. The driver shares every switch arm between the two PIDs and groups them with the Basilisk V3 Pro family.What was read off the driver (not assumed)
Per-command transaction IDs, lighting zones, effect kinds, poll rates, and battery/idle support are taken branch-by-branch from
razermouse_driver.c(including thesetup_attrsregistration at line 6929):0x1f.125 / 500 / 1000.basilisk_v3_proprecedent.charge_low_thresholdon txn0xFFwhile charge level/status stay on0x1f. umbra's single-txnBatterySpectracks the level/status path (0x1f); the low-threshold mismatch is documented in the doc comment and follows thebasilisk_v3_prosibling.Assumptions
DPI maximum is documented as a sensor-derived assumption (Focus Pro 30K = 30000) in each file's doc comment; the driver does not clamp DPI.
Tests / checks
cobra_pro_pair_registered_with_logo_scroll_battery_idletest overmodels::lookupcovers registration plus the per-command txn, Logo + Scroll zones, and battery/idle support for both PIDs.cargo test --package umbra-hid --no-default-featurespasses (26 tests).cargo build --workspaceandcargo fmt --all --checkpass clean. The new files are clippy-clean; note that the local clippy 1.94.0 flags a pre-existingdoc_lazy_continuationlint in three unrelatedbasilisk_*files from earlier merged PRs (out of scope for this issue).README
The "Supported devices" table lists both models with VID:PID, DPI max, polling, lighting, and battery columns.
#UMBRA-12
🤖 Generated with Claude Code