http://bugs.winehq.org/show_bug.cgi?id=6971
Roman m01brv@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |m01brv@mail.ru
--- Comment #489 from Roman m01brv@mail.ru 2011-05-12 04:11:35 CDT --- I have an issue with Aliens vs. Predator 2 with wine 1.3.17 + XInput2 patch from here. After loading a level, the picture starts to crazily rotate at high speed, although I do not touch mouse at all. The debug logs suggest that this happens because the game itself is contiuously warping the pointer to the screen center, calling (through wine) XWarpPointer. But this call triggers an XI_RawMotion event with *absolute* screen coordinates, as requested in XWarpPointer, rather then with their relative offset. This can be checked using a testcase from here: http://comments.gmane.org/gmane.comp.freedesktop.xorg.devel/12204 The functions responsible for tracking xi2 interpret them as relative movements, so wine continuosly send dinput events as if the mouse was continuously jumping by (640,400) (for my resolution 1280x800), and this causes constant crazy rotation of the picture.
Comparing the behaviour of the game in different wine versions: wine 1.3.17 - mose aiming is trembling; it is usable only with maximum "mouse smoothing" in-game setting wine 1.3.17 + XInput2 patch - crazy rotation, as I described wine 1.3.18 - mouse is almost stuck, the picture practically does not react on mouse moving; only some small shifts of the picture may occure from time to time (when rapidly moving mouse in various directions during a few seconds continuosly).