Skip to content

fix(polling): show unknown rates without selecting a fallback - #693

Merged
snekxs merged 3 commits into
OpenMouse-Project:mainfrom
DEERSTUDIO101:fix/pulsar-xs1-polling
Oct 8, 2026
Merged

snekxs merged 3 commits into
OpenMouse-Project:mainfrom
DEERSTUDIO101:fix/pulsar-xs1-polling

Conversation

@DEERSTUDIO101

Copy link
Copy Markdown
Contributor

When a driver reports an unavailable polling rate (0 or a non-finite value), OpenMouse currently prints 0 Hz and selects the nearest button, usually 125 Hz. Display a dash and leave all buttons unselected instead. Known positive rates retain the previous nearest-step behavior.

Update the performance readout and controller status line, and add two dev previews: ?preview=pulsar-xs1-8k and ?preview=pulsar-xs1-unknown. These cover the shared Pulsar 8K receiver's recognized and unknown-read states. Polling remains read-only for this XS-1 driver; DPI and other controls stay available.

Companion protocol change: OpenMouse-Project/mouse-protocol#185. It fixes the 3710:5403 capability list and stops fabricating 1000 Hz on a failed query. The UI change also handles the existing unavailable-rate sentinel used by other drivers, so it can merge independently. The released npm dependency remains unchanged; the protocol-update workflow can adopt the new release.

Validation: build and all 294 tests passed both with the current stable dependency and the locally packed protocol change. Bundle-size check passed. Browser DOM checks confirmed the unknown-rate dash with no selected rate button, and the recognized 8K state with its disabled 8K button selected. This was checked in the Codex browser, not presented as a physical mouse or Chrome hardware test.

@snekxs
snekxs marked this pull request as ready for review October 8, 2026 21:54
@snekxs
snekxs merged commit 45dab11 into OpenMouse-Project:main Oct 8, 2026
2 checks 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