Re: Re: mouse cursor problems
"Gregory S. Hayes" <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <1078509413.1233.1.camel@icebreaker> |
I will try that patch. My mistake, I thought it got rolled into CVS
based on the conversation in the thread!
Thanks
Greg
-
On Fri, 2004-03-05 at 05:56, Nadav Frum wrote:
> 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
> ----------
>
>