Skip to content

feat(web): add the raw mouse input switch - #86

Merged
enricobuehler merged 2 commits into
mainfrom
feat/raw-mouse-setting
Nov 20, 2026
Merged

enricobuehler merged 2 commits into
mainfrom
feat/raw-mouse-setting

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

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

  • Pin (own commit): both manifests at punktfunk 71b1e3651, from 7ff5eeeed. One adaptation: a stream's mode carries an exact refresh rate there (refresh_mhz), and the page, which asks whole hertz, sends 0.
  • Setting: rawMouse in the stored settings, default false, anything but true reads as off. It reaches the engine through configure, where TunableOptions.rawMouse already takes it.
  • Row: a switch in the Input tab's advanced card, worded by player_raw_mouse and player_raw_mouse_hint from 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

  • The mark that tells a Linux host these are a mouse's own counts, so the host's pointer settings apply. Raw motion still moves a Linux host's pointer one pixel a count.
  • A row in console mode's own settings screen. The page's sheet holds the switch in both interfaces.

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 for wasm32-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.

enricobuehler 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
enricobuehler marked this pull request as ready for review November 20, 2026 08:03
@enricobuehler
enricobuehler merged commit 2398148 into main Nov 20, 2026
8 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.

1 participant