https://bugs.winehq.org/show_bug.cgi?id=45882
Bug ID: 45882 Summary: (Overwatch, several source games) Raw Mouse input not working Product: Wine Version: 3.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: florian98.rg@gmail.com Distribution: ---
Playing Overwatch I've noticed that the game still uses mouse pointer speed even though on Windows it uses Raw Mouse input exclusively.
I've tried this on any branch of Wine (staging, esync, whatsoever) and the problem still persists. This also happens in Valve games where you can enable Raw Mouse Input, e.g. Team Fortress 2 etc.
This does not happen with the native ports of said games that use SDL to get mouse input.
I already disabled any mouse acceleration in GNOME whatsoever (using the "Flat" Profile), however the problem persists.
Is it possible to rewrite Wine to get Mouse input via SDL2 instead? That would help pave way for Wayland etc.
Thanks
https://bugs.winehq.org/show_bug.cgi?id=45882
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #1 from florian98.rg@gmail.com --- Previous issue report on Valve Github: https://github.com/ValveSoftware/wine/issues/21
https://bugs.winehq.org/show_bug.cgi?id=45882
florian98.rg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |florian98.rg@gmail.com Hardware|x86 |x86-64 Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=45882
florian98.rg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
https://bugs.winehq.org/show_bug.cgi?id=45882
Ryan Rohrer ryan.rohrer@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ryan.rohrer@gmail.com
--- Comment #2 from Ryan Rohrer ryan.rohrer@gmail.com --- I also have this issue, running gnome in an xorg session.
It seems it’s getting the mouse speed scalar from the desktop applied. There is no acceleration so long as I set the profile to “flat” in gnome tweaks.
I’d be happy to give logs or anything that could help fix this, it’s very annoying.
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #3 from florian98.rg@gmail.com --- (In reply to Ryan Rohrer from comment #2)
I also have this issue, running gnome in an xorg session.
It seems it’s getting the mouse speed scalar from the desktop applied. There is no acceleration so long as I set the profile to “flat” in gnome tweaks.
I’d be happy to give logs or anything that could help fix this, it’s very annoying.
I think Wine simply implements stubs for Raw Mouse Input and doesn't actually get the raw input from the XServer. Either that or the DEs do some magic so Wine gets the Raw Mouse Input that's been multiplied with the mouse pointer speed.
As this is a widespread issue with several games that use Raw Mouse Input, is there a way to get this issue added to Overwatch and all Source Engine games, aswell as any other games that use raw mouse input?
The only plausible fix for this would be to get Raw Mouse Input via SDL, as that's been proven to work in native ports.
https://bugs.winehq.org/show_bug.cgi?id=45882
florian98.rg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|user32 |-unknown Version|3.16 |3.19
https://bugs.winehq.org/show_bug.cgi?id=45882
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #4 from Zebediah Figura z.figura12@gmail.com --- I'm not sure what exactly this bug is about. What about mouse input doesn't work in Overwatch?
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #5 from Ryan Rohrer ryan.rohrer@gmail.com --- (In reply to Zebediah Figura from comment #4)
I'm not sure what exactly this bug is about. What about mouse input doesn't work in Overwatch?
The input scalar that a DE like gnome puts on mouse input is applied to the input that overwatch gets.
So instead of movement being DPI * in_game_sensitivity, its (DPI + k) * in_game_sensitivity. NOTE: this is different than acceleration, where k would change based on how fast you're moving the mouse, and can be removed by setting your gnome mouse profile to "flat".
Basically the way (specifically raw) input is read in wine, it's getting X11's mouse deltas instead of the hardware mouse deltas.
The expected behavior of the raw input api in windows is: no desktop pointer settings apply to how the mouse is read its raw hardware data. No acceleration, no scalars etc. The current behavior in wine is: whatever x11 sees as mouse delta is what is fed to the app, this includes things like acceleration and the speed scalar.
https://bugs.winehq.org/show_bug.cgi?id=45882
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|(Overwatch, several source |Raw Input should use |games) Raw Mouse input not |untransformed mouse values |working |(affects Overwatch, several | |Source games) Component|-unknown |user32
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- Okay, I think that makes sense.
I don't think we want to go through libSDL2 for this, though I could be wrong. In any case, though, assuming that I am correctly reading what little X11 documentation there is, I think it would be relatively easy to get the right values from XInput2.
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #7 from Ryan Rohrer ryan.rohrer@gmail.com --- (In reply to Zebediah Figura from comment #6)
Okay, I think that makes sense.
I don't think we want to go through libSDL2 for this, though I could be wrong. In any case, though, assuming that I am correctly reading what little X11 documentation there is, I think it would be relatively easy to get the right values from XInput2.
With my limited knowledge of the input stack in wine + XInput2 it seems like that would be the case. At the very least XInput claims to offer raw input.
I was reading the code to try to pinpoint what needed to be changed but ran out of time :'D
https://bugs.winehq.org/show_bug.cgi?id=45882
Stenka moises.ramos.lebon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |moises.ramos.lebon@gmail.co | |m
https://bugs.winehq.org/show_bug.cgi?id=45882
florian98.rg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|3.19 |4.0-rc6
--- Comment #8 from florian98.rg@gmail.com --- Any updates? I know Wine is in code-freeze right now, but as this apparently seems to be a trivial fix maybe a patch for staging could be done?
https://bugs.winehq.org/show_bug.cgi?id=45882
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|4.0-rc6 |3.16 CC| |joseph.kucia@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #9 from Zebediah Figura z.figura12@gmail.com --- (In reply to florian98.rg from comment #8)
Any updates? I know Wine is in code-freeze right now, but as this apparently seems to be a trivial fix maybe a patch for staging could be done?
Sure, feel free to write one.
(Which is to say that this bug is not really blocked by it being code freeze, so much as that Wine contributors have plenty of other bugs to fix and nobody's gotten to this one yet. It's also a little less than trivial since we need to pass different values through the server.)
(Also, please don't change the initially reported version; if a bug is still present in a newer version of Wine, mention it in a comment instead.)
https://bugs.winehq.org/show_bug.cgi?id=45882
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #10 from MRLX mrlx@protonmail.com --- Same issue here, wine 4.3
https://bugs.winehq.org/show_bug.cgi?id=45882
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |STAGED CC| |leslie_alistair@hotmail.com Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/user32-rawinput Ever confirmed|0 |1
https://bugs.winehq.org/show_bug.cgi?id=45882
Simon the Sorcerer sur3@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sur3@gmx.de
--- Comment #11 from Simon the Sorcerer sur3@gmx.de --- Hi I tried the latest wine staging and the raw input patch seems not to work for me; I cant move the in-game mouse at all with that patch enables but the menu mouse still works, can I set/select the device for the raw input somewhere?
Also Overwatch should be added to affected Applications for this bug to appear in the appdb as well.
https://bugs.winehq.org/show_bug.cgi?id=45882
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dereklesho52@Gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45882
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sashok.olen@gmail.com
--- Comment #12 from Alexandr Oleynikov sashok.olen@gmail.com --- (In reply to Simon the Sorcerer from comment #11)
Hi I tried the latest wine staging and the raw input patch seems not to work for me; I cant move the in-game mouse at all with that patch enables but the menu mouse still works, can I set/select the device for the raw input somewhere?
Also Overwatch should be added to affected Applications for this bug to appear in the appdb as well.
Do you use Wayland?
https://bugs.winehq.org/show_bug.cgi?id=45882
mata sutupud@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sutupud@yahoo.com
--- Comment #13 from mata sutupud@yahoo.com --- I'm experiencing the same in Overwatch with wine-staging 4.17, both on ubuntu and manjaro, using Xorg (not wayland).
Seems this is also related: https://bugs.winehq.org/show_bug.cgi?id=47834
https://bugs.winehq.org/show_bug.cgi?id=45882
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-sta |https://github.com/wine-sta |ging/wine-staging/tree/mast |ging/wine-staging/tree/mast |er/patches/user32-rawinput |er/patches/user32-rawinput- | |mouse-experimental
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #14 from Ryan Rohrer ryan.rohrer@gmail.com --- It looks like this patch was removed from wine staging 4.17 to fix some issues it caused. Any idea when its going to be put back in?
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #15 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Ryan Rohrer from comment #14)
It looks like this patch was removed from wine staging 4.17 to fix some issues it caused. Any idea when its going to be put back in?
This was updated and enabled in 5.0rc3.
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #16 from Simon the Sorcerer sur3@gmx.de --- Mouse raw input patch seems not to work with emulated desktop but without emulated desktop my applications don't work correctly on my secondary monitor..
https://bugs.winehq.org/show_bug.cgi?id=45882
Alex Xu alex_y_xu@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |49056
https://bugs.winehq.org/show_bug.cgi?id=45882
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on|49056 | CC| |o.dierick@piezo-forte.be
https://bugs.winehq.org/show_bug.cgi?id=45882
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #17 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 69778 --> https://bugs.winehq.org/attachment.cgi?id=69778 Updated patch for Wine 6.6
Updating the patch for Wine 6.6, still depends on the patch for https://bugs.winehq.org/show_bug.cgi?id=42631 to be applied (and the HID patch itself depends on).
https://bugs.winehq.org/show_bug.cgi?id=45882
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #69778|0 |1 is obsolete| |
--- Comment #18 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 70034 --> https://bugs.winehq.org/attachment.cgi?id=70034 Updated patch for Wine 6.9
Same here, I'm not sure it needed a rebase, but posting it nonetheless.
https://bugs.winehq.org/show_bug.cgi?id=45882
--- Comment #19 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 70905 --> https://bugs.winehq.org/attachment.cgi?id=70905 Updated patch for Wine 6.21
Update as some of the patches got upstream.
https://bugs.winehq.org/show_bug.cgi?id=45882
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #70034|0 |1 is obsolete| | Attachment #70905|0 |1 is obsolete| |
--- Comment #20 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 70917 --> https://bugs.winehq.org/attachment.cgi?id=70917 Updated patch for Wine 6.21
Previous rebase had a regression in last patch, this should fix it.
https://bugs.winehq.org/show_bug.cgi?id=45882
tinozzo123@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tinozzo123@tutanota.com