https://bugs.winehq.org/show_bug.cgi?id=42999
--- Comment #20 from Patryk SzczepaĆski theszczepancio@gmail.com --- Okey, so with help of my friend (morsisko) we finally fixed the mouse bug on macOS with custom wine build.
The custom CrossOver wine executables with fix can be downloaded here: https://github.com/PSzczepanski1996/macos-crossover-wine-nostale-builder
The patch that we wrote is placed here: https://github.com/PSzczepanski1996/macos-crossover-wine-nostale-builder/blo...
Why we must do that? Because game for some reason is checking memory regions preventing it's own odd logic from calling system memory. It checks if the code is called under "0x70000000" range, but for some reason `user32.dll` is placed here under Wine causing mouse bug, graphical glitches and other memory-releated errors.
Not sure if we should set constant values for `user32.dll` and other libraries in Wine or mix them via some randomizer like it's done in ALSR: https://user-images.githubusercontent.com/21007545/210278824-29f42d90-aca4-4...
But this is thread to discuss since I'm not familiar with Wine development.