Is there a way to disable mouse acceleration in certain apps? For instance disable in Team Fortress 2 but re-anable when the app doesn't have focus?

1 Answer 1


You can globally use the following command in Terminal (you must log out to take effect):

defaults write .GlobalPreferences com.apple.mouse.scaling -1

To know what the current acceleration is, use this command:

defaults read .GlobalPreferences com.apple.mouse.scaling

For most mice in macOS, the default is set to 3 or 2 but some users may find values as low as 0.25 or 0.12, it generally depends on what type of mouse you are having and the current version of macOS. The moderate value is 0 to 3.

defaults write .GlobalPreferences com.apple.mouse.scaling 0

Look at this useful AD post: How to disable mouse acceleration in Yosemite?

Also, for TF2 game you can definitely use Apple Automator: How to Use Automator in macOS

¡Hope this helps!

  • Is this to disable the acceleration in 1 app or system wide? I am looking to disable it in a select apps.
    – evenwerk
    Jul 4, 2017 at 13:47
  • System wide (globally).
    – user243793
    Jul 4, 2017 at 13:48
  • Ok, is it also possible to disable it in select apps such as Team Fortress 2?
    – evenwerk
    Jul 4, 2017 at 13:49
  • Try this: smoothmouse.com
    – user243793
    Jul 4, 2017 at 13:58
  • 1
    The links in the smoothmouse website might be useful.
    – evenwerk
    Jul 4, 2017 at 14:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .