Skip to content

Add long presses, button combinations, and swipe gestures to button mappings - #1326

Merged
lujjjh merged 24 commits into
mainfrom
feature/advanced-button-mappings
Aug 2, 2026
Merged

lujjjh merged 24 commits into
mainfrom
feature/advanced-button-mappings

Conversation

@lujjjh

@lujjjh lujjjh commented Aug 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add structured button mapping triggers for presses, long presses, simultaneous chords, ordered held-then-pressed combinations, swipes, modifier keys, and wheel input.
  • Migrate legacy button mappings into the unified model while preserving repeat and hold actions, and update the configuration schema and documentation.
  • Introduce deterministic interaction routing that preserves active mappings across scheme changes, balances button down/up events, and coexists with Auto Scroll, Gesture Button, and Logitech controls.
  • Add a live advanced recorder, native second-level Button settings pages, conflict warnings, and localized UI copy.

Related issues

Double/triple-click triggers, per-mapping timing values, trackpad pinch/rotate emulation, Smart Shift control, and continuous hold semantics for wheel-only inputs remain out of scope.

Testing

  • xcodebuild test -project LinearMouse.xcodeproj -scheme LinearMouse -destination "platform=macOS" CODE_SIGNING_ALLOWED=NO (523 tests passed)

@lujjjh lujjjh added the enhancement New feature or request label Aug 2, 2026
@lujjjh lujjjh changed the title Add advanced button mapping gestures Add long presses, button combinations, and swipe gestures to button mappings Aug 2, 2026
@lujjjh
lujjjh merged commit 2dd40b6 into main Aug 2, 2026
1 check passed
@lujjjh
lujjjh deleted the feature/advanced-button-mappings branch August 2, 2026 14:26
lujjjh added a commit that referenced this pull request Aug 9, 2026
Adds two new Button Mapping actions:

Maximize Window
Minimize Window

Maximize Window resizes the focused window to the usable area of its
display while preserving the menu bar and Dock, rather than entering
macOS full-screen mode.

Minimize Window minimizes the focused window to the Dock using the macOS
Accessibility API.

These actions work with the existing Button Mapping system, including
the swipe triggers introduced in #1326.

Tested successfully with:

Logitech MX Master 4
Samsung Bluetooth Mouse Slim

Verified:

Maximize correctly fits the focused window within the visible screen
area
Minimize correctly sends the focused window to the Dock
Full test suite passes
SwiftFormat lint passes

---------

Co-authored-by: Steven B Coe <[email protected]>
Co-authored-by: Jiahao Lu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

1 participant