I've been struggling since upgrading a lab to Mojave with getting both the right click setting to work as well as setting the scroll direction to be not natural. We remove the users profile at every logout.
I've managed to get the right mouse button to be set to right click in the system preference but the OS is ignoring the setting and the right click doesn't work despite the preference pane saying it is enabled.
I wrote this setting to my desktop:
defaults write /Users/$USER/Desktop/com.apple.driver.AppleHIDMouse.plist Button2 -int 2
Then updated the plist file to be able to be imported: /usr/bin/plutil -convert xml1 /Users/$USER/Desktop/com.apple.driver.AppleHIDMouse.plist
Then deployed using a configuration profile with custom settings.
I did the same for the scroll direction using this key: defaults write /Library/Preferences/.GlobalPreferences.plist com.apple.swipescrolldirecton -bool false
The swipe scroll seems to be getting applied to the .GlobalPreferences in the Library/Preferences folder instead of the User/Library/Preference folder.
Anyone have an idea on how to get this working?