I did some research and it looks like this is stored in the IORegistry under ":/IOResources/HIDSystem" as "HIDMouseAcceleration".
Can these be set from a user program using the IORegistry API?
Any other ways to programmatically change the mouse system preferences settings?
My choice of programming language is C. The approach needs to work on OS X v10.11+.
Thanks.
Yes, it's possible. Here's some rough code to do it:
The various parameter keys are defined and lightly documented in IOKit.framework/Headers/hid/IOHIDProperties.h and IOKit.framework/Headers/hidsystem/IOHIDParameter.h. I would test thoroughly with as much different hardware and configurations in System Preferences as you can, to see exactly which parameters are relevant and what their values mean.