rxhanson / Multitouch-Community

Issue and feature request tracking for the Multitouch app
https://multitouch.app
38 stars 0 forks source link

Middle click and drag does not work in games (and certain apps) #106

Open Fred-IV opened 2 years ago

Fred-IV commented 2 years ago

I've tried middle-click in the Apps Middle, and MiltiTouch. Both have the same issue. Total loss of control of the mouse. You cannot hold down 2 fingers, for the middle-click, then navigate with the mouse. All mouse control is gone during the middle-click hold. I was hoping to be able to middle-click for gaming. It's something wrong with these apps. The default Apple functions of left or right clicks doesn't freeze the mouse movement.

rxhanson commented 2 years ago

Both of these apps are optimized for 3D modeling apps out of the box.

To adjust this for games, you can execute this terminal command and restart the app: defaults write com.brassmonkery.Multitouch mutateMouseDragEvents -bool true

You can open the About window in Middle and select Debug > Optimize for Games to get this behavior in Middle. Alternatively, the terminal command also works for middle with an app restart after: defaults write com.knollsoft.Middle mutateMouseDragEvents -bool true

In a recent update in Middle that will make its way into Multitouch, I will automatically adjust this behavior based on the app's bundle id. If you have the bundle ids for the games you play, then I can add them to the list for automatic behavior. To obtain bundle ids, right click on the app/game and select "Show package contents". You can find this in the Contents/Info.plist. I'm still considering more ways to handle this more elegantly.