-1

I want to make a sensitivity slider on my RTS game. But I have no clue how to access the mouse tracking speed on Mac nor how to change it.

Any ideas?

twSoulz
  • 82
  • 1
  • 9
ctrl
  • 1
  • Are you asking "How can my C# program change a user's mouse tracking speed when run on MacOS?" – Flydog57 Aug 08 '22 at 15:18
  • Yeah. How to make a C# program to change a user's mouse tracking speed when run on MacOS? Wasnt so clear. – ctrl Aug 08 '22 at 16:57
  • I don't have a clue how to do this. However, unless you are writing a utility (intended to change the mouse tracking speed), don't you think this is a bad idea? Someone runs your program and suddenly the behavior of _their_ computer changes. – Flydog57 Aug 08 '22 at 17:02
  • Defenetly but there isnt any other practical way to do it i think. That's how WC3 doest it, how mobas do it. Its either changing the computer's settings directly or a laggy mouse. – ctrl Aug 08 '22 at 17:32

1 Answers1

0

Mouse acceleration commands

One way to change the speed is if you could access the command line with C# and execute

defaults read -g com.apple.mouse.scaling (VALUE)

When (VALUE) is omitted, it shows the current mouse speed.

If there is a macOS terminal/cmd executable, you could try to run the speed change with System.Diagnostics.Process.Start() as used in this stack overflow question.

twSoulz
  • 82
  • 1
  • 9