i think i had a similar problem with another dos game, and what i did was i created a custom profile for it using
this frontend and under the input section, there was an option that you could enable/disabled called "mouse lock" or something like that which locked the mouse to the current window when clicked and it seemed to fix it for me.