From 0c1cf19ab2e1d372971b58b9ecc90148f9470d18 Mon Sep 17 00:00:00 2001 From: snekxs <26660858+snekxs@users.noreply.github.com> Date: Wed, 21 Oct 2026 18:13:58 -0600 Subject: [PATCH 1/2] Add angle tuning and magnetic button controls - Angle tuning: a -30 to +30 degree slider on the Performance tab for every mouse whose driver reports an angle. - Magnetic buttons (G-Wolves, Lamzu): per-button switch type, trigger point, release point, rapid trigger toggle and sensitivity on the Advanced tab. Flipping rapid trigger rebuilds the page so the sensitivity slider appears or disappears. - OPENMOUSE_MOCK=mag adds a fake Hall-effect mouse for looking at these. --- gpui/js/controls.ts | 128 +++++++++++++++++++++++++++++++++++++++++++- gpui/js/entry.ts | 7 +-- gpui/js/mock.ts | 40 ++++++++++++-- 3 files changed, 168 insertions(+), 7 deletions(-) diff --git a/gpui/js/controls.ts b/gpui/js/controls.ts index ed0ac68..f0c0297 100644 --- a/gpui/js/controls.ts +++ b/gpui/js/controls.ts @@ -400,6 +400,114 @@ const GENERIC: GenericSpec[] = [ const titleCase = (value: string) => value.charAt(0).toUpperCase() + value.slice(1); +/** + * Hall-effect primary buttons (G-Wolves, Lamzu): where the click registers, + * rapid trigger, and which switch each button uses. `mag..