[PATCH 1/2] dinput: Use GetCursorPost() to calculate relative mouse movements.

Vitaliy Margolen wine-patches at kievinfo.com
Wed Dec 20 02:03:11 CST 2006


This patch removes all the "magic" related to mouse warping and leaves only bare
minimum. It would be better if we can warp mouse when it's approaching the border
rather then after each move. However that will allow mouse to escape the game
window and we won't get any mouse events after that. As soon as we will have
working dxgrab we can revisit mouse warping.

Tests also showed that we should accumulate position change and then reset it from
GetDeviceState for relative axis mode. For absolute axis mode, do the same except
don't reset values.

---
 dlls/dinput/mouse.c |  126 ++++++++++++++-------------------------------------
 1 files changed, 35 insertions(+), 91 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54444ba09ad70f36ce00a6be3bcd8137325d7c14.diff
Type: text/x-patch
Size: 8263 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061220/d93409bc/54444ba09ad70f36ce00a6be3bcd8137325d7c14.bin


More information about the wine-patches mailing list