Hey, welcome! ??
Finding the correct values can be a pita, it’s basically trial & error. Some DOS games even have such weird mouse implementation that it’s impossible to get it working correctly (Worms, for example).
You can take a look at this list here, to see if someone else has already found proper values.