Repository navigation
feat(web): add the raw mouse input switch - #86
Merged
Merged
Conversation
added 2 commits
November 20, 2026 08:21
The stream crates and the server leave 7ff5eeeed, so the page reads the words for the raw mouse row. A stream's mode carries an exact refresh rate there. The page asks whole hertz and sends none.
Capture mode locks the pointer plainly since 0.6.0, which keeps this device's pointer speed and acceleration. A player who wants the mouse's own counts had no way to ask for them. The switch sits under Show advanced with the keyboard and mouse rows, off by default, and reaches the engine's `rawMouse`.
enricobuehler
marked this pull request as ready for review
November 20, 2026 08:03
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.
The opt-in for raw mouse counts that 0.6.0 left without a switch: Raw mouse input, under Show advanced on the Input tab, off by default.
Draft until punktfunk #2558 merges. The pin here is that PR's head, which carries the row's words; it lands in main's history with a merge commit. If #2558 changes before it merges, the pin follows.
Change
71b1e3651, from7ff5eeeed. One adaptation: a stream's mode carries an exact refresh rate there (refresh_mhz), and the page, which asks whole hertz, sends 0.rawMousein the stored settings, defaultfalse, anything buttruereads as off. It reaches the engine throughconfigure, whereTunableOptions.rawMousealready takes it.player_raw_mouseandplayer_raw_mouse_hintfrom the monorepo. Changed while hidden, the tab counts it like any advanced row.The switch takes effect the next time the pointer is locked. Where a browser has no raw counts, the lock stays plain, as before.
Not in this PR
Checks
Locally, on this tree:
npm run check,npm test(141 + 19, the new settings test among them), Node 24.packages/stream:cargo fmt --check, clippy native and forwasm32-unknown-emscripten(-D warnings),cargo test(25).server:cargo fmt --check, clippy,cargo test --locked(49).Not run locally: the wasm link (
npm run build), Storybook, the screenshots. Nothing on glass.