Skip to content

feat(macos): support mouse wheel input in defsrc#2010

Merged
jtroo merged 1 commit intojtroo:mainfrom
FlameFlag:flameflag/push-mlxyktlttpkk
Apr 8, 2026
Merged

feat(macos): support mouse wheel input in defsrc#2010
jtroo merged 1 commit intojtroo:mainfrom
FlameFlag:flameflag/push-mlxyktlttpkk

Conversation

@FlameFlag
Copy link
Copy Markdown
Contributor

Describe your changes. Use imperative present tense.

Extend the existing mouse event tap to also intercept ScrollWheel
events and decode them into MouseWheel{Up,Down,Left,Right} OsCodes,
mirroring the axis/sign convention from OsKbdOut::scroll. Pick the
dominant axis on diagonal scrolls (vertical wins ties), matching how
Linux processes one REL_WHEEL/REL_HWHEEL at a time. Suppress mapped
wheel directions and forward them as KeyValue::Tap events; pass
unmapped ones through

Checklist

  • Add documentation to docs/config.adoc
    • Yes or N/A
  • Add example and basic docs to cfg_samples/kanata.kbd
    • N/A
  • Update error messages
    • N/A
  • Added tests, or did manual testing
    • Yes, manual

Extend the existing mouse event tap to also intercept `ScrollWheel`
events and decode them into `MouseWheel{Up,Down,Left,Right}` OsCodes,
mirroring the axis/sign convention from `OsKbdOut::scroll`. Pick the
dominant axis on diagonal scrolls (vertical wins ties), matching how
Linux processes one `REL_WHEEL/REL_HWHEEL` at a time. Suppress mapped
wheel directions and forward them as `KeyValue::Tap` events; pass
unmapped ones through
Copy link
Copy Markdown
Owner

@jtroo jtroo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jtroo jtroo merged commit cbbfc38 into jtroo:main Apr 8, 2026
5 checks passed
@FlameFlag FlameFlag deleted the flameflag/push-mlxyktlttpkk branch April 8, 2026 07:47
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.

2 participants