Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hs.mouse - fixes setMouseSpeed and adds trackpad support#3758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
asmagill wants to merge2 commits intoHammerspoon:master
base:master
Choose a base branch
Loading
fromasmagill:TrackpadAcceleration

Conversation

@asmagill
Copy link
Member

Adds support for getting and setting trackpad speed
Fixes#3744

The issue was that the value would be changed, and reflected in the appropriate system preferences panel, but it wouldn't actually be applied so there was no change in mouse behavior. This fix uses the deprecated functionsIOHIDGetAccelerationWithKey andIOHIDSetAccelerationWithKey, but it works (for now).

Tested with Sonoma 14.7.4, should be tested with Sequoia.

If I come across anything that shows how to force the UI to update the HID settings to match what is in the IOKit HID dictionary, I may try reverting this and fixing it in a more "modern" way, but atm this is the only way I've found that actually makes the change take effect immediately.

(seehttps://stackoverflow.com/questions/10448843/mac-mouse-trackpad-speed-programmatically andhttps://web.archive.org/web/20150513175725/http://lists.apple.com/archives/usb/2004/Aug/msg00056.html)

@asmagillasmagill added pr-fixPull Request implementing a bug fix pr-featurePull Request implementing a feature labelsMar 9, 2025
@codecov
Copy link

codecovbot commentedMar 9, 2025

Codecov Report

Attention: Patch coverage is79.31034% with6 lines in your changes missing coverage. Please review.

Project coverage is 27.43%. Comparing base(20f27e5) to head(377af82).

Additional details and impacted files
@@            Coverage Diff             @@##           master    #3758      +/-   ##==========================================+ Coverage   27.06%   27.43%   +0.36%==========================================  Files         191      191                Lines       51460    51471      +11     ==========================================+ Hits        13926    14119     +193+ Misses      37534    37352     -182
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] approved these changes

Assignees

No one assigned

Labels

pr-featurePull Request implementing a featurepr-fixPull Request implementing a bug fix

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Applying the hs.mouse.trackingSpeed() setting

1 participant

@asmagill

[8]ページ先頭

©2009-2025 Movatter.jp