One of the nagging issues that has been around for awhile with wine is "mouse warping" In some cases it doesn't place nice with the house environment, in other cases it doesn't play nice with the game, and overall it's a bit of an annoyance. Would it be possible to introduce an option to wine that would allow one to select whether warping is used (maybe a checkbox for "Disable mouse warping"). As it is, quite a few older games don't work without it (for myself the current game-of-note is Dungeon Keeper 2), and using the native dinput.dll to avoid the issues then voids any constraints to keep the mouse pointer within the app window (the mouse works, but it exits the window before the in-game cursor does, making outlying screen areas unreachable).
2008/6/1 phormix <wineforum-user at winehq.org>:> Would it be possible to introduce an option to wine that would allow one to select whether warping is used (maybe a checkbox for "Disable mouse warping"). > As it is, quite a few older games don't work without it (for myself the current game-of-note is Dungeon Keeper 2), and using the native dinput.dll to avoid the issues then voids any constraints to keep the mouse pointer within the app window (the mouse works, but it exits the window before the in-game cursor does, making outlying screen areas unreachable).FWIW, I notice that the Wine conformance tests use mouse warping - so presumably it *should* work properly. Are there filed bugs for the cases where it doesn't? - d.
phormix wrote:> Would it be possible to introduce an option to wine that would allow one to select whether warping is used (maybe a checkbox for "Disable mouse warping").It won't help in lots of cases. If you talking about games based on Quake engine - that option would be useless. ID's code has a bug in it - it initializes DInput mouse in exclusive mode without specifying the window. This is wrong and it fails. However code ignores the error and continues on using mouse in default mode (background non-exclusive). The problem is - Wine have to have window to be able to warp mouse inside of it. Forcing or not - no window - no warping.