WineHQ
Bug Tracking Database – Bug 57216

 Bugzilla

 

Last modified: 2024-12-13 21:36:45 UTC  

Mouse wheel input in IL-2 1946 is not applied consistently to UI elements and throttle

Bug 57216 - Mouse wheel input in IL-2 1946 is not applied consistently to UI elements and throttle
Mouse wheel input in IL-2 1946 is not applied consistently to UI elements and...
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: dinput
8.5
x86-64 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
: regression
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2024-09-22 08:53 UTC by Herrmann
Modified: 2024-12-13 21:36 UTC (History)
1 user (show)

See Also:
Regression SHA1: 1e594b1c0fd23c1aedc13b3c2d8c91c1fc00f8ee
Fixed by SHA1: 4fa92346706d434a0de03bd7d6e2383fbeba36b2
Distribution: ---
Staged patchset:


Attachments
Terminal output of game crashing at startup (13.51 KB, text/plain)
2024-09-22 08:53 UTC, Herrmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Herrmann 2024-09-22 08:53:37 UTC
Created attachment 77128 [details]
Terminal output of game crashing at startup

This bug report has two different problems:

Using any Wine after 8.0 stable will cause Scroll-wheel to don't work reliably. If you scroll downwards, it will go downwards, but if you instead scroll upwards, it will still go downwards.

Pointer goes very slow and sticky when close to borders of the screen. Only in center of the screen it works like it should.

Game is only playable at Wine 8.0 stable because of this problem. Wine 9.0 stable has same mouse wheel problem and newest wine releases 9.16, 9.17 and 9.18 just crashes game at startup.

Terminal output as attachment with Wine 9.18 staging:
Comment 1 Andrew Nguyen 2024-09-24 11:25:36 UTC
Regarding the issue with the mouse wheel scroll behavior, I was able to reproduce the problem in wine-9.0 and wine-9.18 with the GOG release of IL-2 Sturmovik: 1946 (version 4.13.4m). The weird scroll behavior can be seen in the game by accessing View Objects -> Aircraft from the main menu and using the mouse wheel to scroll up and down with the pointer over the Object List.

With 5 wheel-down inputs applied to the list, I notice the scrollbar moves down 4 times, but applying 5 wheel-up inputs results in the scrollbar moving further down. I had to apply 5 more wheel-up inputs for the scrollbar to start moving up.

Regression testing identified the following commit:

1e594b1c0fd23c1aedc13b3c2d8c91c1fc00f8ee is the first bad commit
commit 1e594b1c0fd23c1aedc13b3c2d8c91c1fc00f8ee
Author: Rémi Bernon <rbernon@codeweavers.com>
Date:   Mon Mar 20 15:07:46 2023 +0100

    dinput: Pass device object format index to queue_event.

As for the issue with the sticky mouse pointer and crash on startup, I could not reproduce the problems in wine-9.18, but my version of the game may have different behavior from yours. Please open separate bugs for the other issues and perform a regression test for the startup crash: https://gitlab.winehq.org/wine/wine/-/wikis/Regression-Testing
Comment 2 Herrmann 2024-09-24 17:09:27 UTC
I was assuming that sticky mouse pointer and scroll-wheel bug were from the same  source, because I always get both of them after updating Wine 8.0 stable to newer versions. It seems not if you don't have it.

There maybe variable here: I play IL-2 1946 4.13.4M with SAS-MODACT 6.40 mod enabler with tons of mods. 

Both in vanilla and with SAS-Modact I can get scroll-wheel bug, but I never tested if I get sticky pointer in vanilla. I just stopped testing it immediately when I recognized scroll-wheel was not working in vanilla either and assumed pointer bug was also present.

- Tested: Sticky pointer bug is only active in SAS-Modact 6.40, and in vanilla it works like it should. (Maybe because of SAS-Modact, maybe reason of some mod/mods, but bug is not present in 8.0 Stable.)

 
About crash at startup, I opened new separated issue for it, and this can be about scroll-wheel behaviour.

https://bugs.winehq.org/show_bug.cgi?id=57227
Comment 3 Herrmann 2024-09-24 17:22:10 UTC
PS: Mouse wheel bug is not only about UI elements, it also applies to throttle when mouse wheel is assigned to control it. 
This makes game unplayable if using mouse wheel as cheap throttle and trackir combination.
Comment 4 Rémi Bernon 2024-12-12 22:22:38 UTC
Should be fixed after 4fa92346706d434a0de03bd7d6e2383fbeba36b2
Comment 5 Alexandre Julliard 2024-12-13 21:36:45 UTC
Closing bugs fixed in 10.0-rc2.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers