https://bugs.winehq.org/show_bug.cgi?id=42631
winebugs@c2.hu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winebugs@c2.hu
--- Comment #59 from winebugs@c2.hu --- System: Manjaro Linux 18.0.0 Kernel: 4.19.6-1 Wine: wine-3.21-114-g1582ae6b04 64bit (build from source with the v3 patch)
I still have problems in a Unity-engine based game, namely Planet Explorers.
First I installed the standard Wine version from the Community repository. (Not a fresh install, but it is updated to the latest) When I installed the game and played with it, I very disappointed to see all the mouse drifting related bugs, that are fixed in the Wine-staging 2.11 version are there again! Hmmm... I uninstalled this version using pacman and deleted the leftover config and other files.
First, I think I have to tell you guys all the procedures what and how I done, because this is the first time that I applied patch to a sourcecode and compiled that patched code. So there is a possibility that I done something wrong...
So, I find this post and see that there is patch to fix this issue. I downloaded the Wine sourcecode, applied the V3 patch and compiled, installed it, followed instructions that I find scattered around the web.
First attempt is a total failure. Because when I run the game I find out the game doesn't even start. It turned out because the game required a 64-bit Wine to be installed. It took hours(!!!) on my laptop with a corei5 processor and 4GB RAM to compile the source...This is my bad, I know...
So, I uninstalled this 32bit installation, poked through my HDD to remove every bit of config files and stuff, that are made by this install.
I started again, and this is the exact steps that I done: (I wrote this down in a text file, so next time I don't have to search for it.)
* git clone https://github.com/wine-mirror/wine.git
Than I downloaded the V3 patch, saved it in the "wine" folder that created when getting the source, and run this command:
* patch -p1 < fix_mouse_sub_pix_raw_motion_v3.patch
It returned the following lines:
patching file dlls/winex11.drv/mouse.c Hunk #3 succeeded at 1773 (offset -1 lines). patching file dlls/winex11.drv/x11drv.h
Than I compiled and installed:
* ./configure --enable-win64 * make * sudo make install
And after hours of compiling when it finished insatlling Wine, I installed winetricks from source too. The game needs the corefonts to be installed and the only way that I know how to insatll those fonts is using winetricks.
This is the steps how I installed winetricks, find the instructions online. I made a folder, cd into that folder, than this commands:
* wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetrick... * chmod +x winetricks * sudo mv winetricks /usr/local/bin * wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetrick... * sudo mv winetricks.bash-completion /usr/share/bash-completion/completions/winetricks * chmod +x /usr/local/bin/update_winetricks.sh
The game runs fine, except all those mouse drifting that is (supposed to be) fixed in that earlier Wine-staging 2.11 version, are there again. The mouse drifts to bottom-right when moving it slowly and it also jumps a little bit to bottom-right every time when clicking with the mouse.
I tried it with 2 different mouse:
Gigabyte GM-M5100 (It is 800 DPI.) https://www.gigabyte.com/Mouse/M5100#ov
And Trust GXT 25 (It is 2000 DPI.) https://www.trust.com/en/product/18307-gxt-25-gaming-mouse
The mouse drift is there with both of them. The Trust mouse has a button to change the DPI, I tried all, but the mouse drift is there in every possible resolution.
Am I applied the patch and compiled Wine in the right way or I messed up something, or the patch really doesn't work?