#mouse #macos #hid

sys mac-mouse-sys

Tiny wrapper for mouse-related functions in macOS IOKit/hidsystem

9 releases

0.0.9 May 3, 2023
0.0.8 May 2, 2023
0.0.6 Apr 12, 2023
0.0.5 Mar 16, 2023

#1139 in Hardware support

MIT license

7KB
92 lines

mac-mouse-sys

Thin wrapper for macOS system-wide mouse settings manipulation.

Todo

  • Add CI
  • Add tests
  • Add documentation
  • Add examples
  • Add more settings

lib.rs:

Tiny wrapper for mouse-related functions in macOS IOKit/hidsystem

Definition of terms:

pointer resolution - the resolution of pointer movement space, the higher the value, the slower the pointer movement speed

Special values:

  • -1: null

  • 5 * 65536: Min

  • 1995 * 65536 Max

mouse acceleration - the acceleration of the pointer movement, the higher the value, the faster the pointer speed will increase, 0 means no acceleration

Special values:

  • 0: No acceleration

  • 45056: macOS default

Dependencies

~0.4–265KB