Re: Re: mouse cursor problems
Nadav Frum <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <Pine.LNX.4.44_heb2.10.0403051235240.6832-100000@localhost.localdomain> |
On Fri, 5 Mar 2004, Gregory S. Hayes wrote:
> I tried the most recent version in CVS (1.50 of dinput/mouse/main.c). I
> found that, at least in Roller Coaster Tycoon 2, the mouse is constantly
> warped back to the center.
Welcome back!
On 26 Feb 2004 I sent you and this forum a patch which I believe would
selectively disable the warping. Have you tried it? Did it work? Are
you even interested in playing Roller Coaster Tycoon 2?
Note: Ove's recent CVS entry (given below) changes the region to which my
patch applies. The hunk will be rejected if you try to apply my
patch. I suggest changing it by eye, or otherwise reverse apply
the following patch before applying my patch:
RCS file: /home/cvs/cvsroot/winex/dlls/dinput/mouse/main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- main.c 2 Mar 2004 16:53:39 -0000 1.49
+++ main.c 2 Mar 2004 17:58:24 -0000 1.50
@@ -654,7 +654,8 @@
/* try to recover from lost warp events by retrying
* the warp if no event received within 20ms */
if (This->need_warp == WARP_STARTED &&
- ((GetCurrentTime() - This->warp_time) > 20)) {
+ ((GetCurrentTime() - This->warp_time) > 20) &&
+ WARP_CONDITION(This)) {
This->need_warp = WARP_NEEDED;
}
}
Regards,
Nadav Frum
----------