feat(buttons): add mouse gesture navigation - #1023
Open
tarnish233 wants to merge 2 commits into
Open
Conversation
Add a Logi Options+-style gesture preset for button mappings. A click opens Mission Control, directional movement dispatches window-navigation shortcuts, and horizontal gestures support deliberate repeat and reversal without changing persisted bindings.
Author
|
我这边目前测试了 logi m750 和 迈从 A5 鼠标都是正常的,代码是 codex 写的 |
Ignore continued, paused, or reversed pointer movement after a gesture direction commits. A new action is available only after releasing and pressing the gesture button again.
Author
|
改成一次按住最多触发一次了,之前偶尔会误触发,求合并 |
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.
Motivation
Mouse-button mappings cannot currently reproduce the gesture-button workflow provided by Logi Options+: click the assigned button for Mission Control, or hold it and move the mouse for directional navigation.
Closes #949
Related to #917
What changed
CGEventmouse buttons and Logi HID++ buttons through the existing unifiedInputProcessorpath.ButtonBindingidentifiers and persistence format unchanged.Validation
git diff --checkCompatibility / risk notes
CGEventand existing system-shortcut execution paths only; no private multitouch APIs.