Re: Re: mouse cursor problems

Ove Kaaven <[email protected]>
Newsgroups gmane.comp.emulators.winex.devel
Organization TransGaming Technologies Inc
Message-ID <1076778878.1445.19.camel@renegade>
lør, 14.02.2004 kl. 12.35 skrev Nadav Frum:
> On Thu, 12 Feb 2004, Gregory S. Hayes wrote:
> 
> > Thanks for pointing me in the right direction. As the game I am using
> > was reported to work in 3.1, I took a look at the dlls/dinput/mouse code
> > and diffed the 3.1 branch to the current HEAD in CVS. I don't know
> > enough about the code to attempt a patch, but it appears that the "if
> > (wparam == WM_MOUSEMOVE) {" block is the right place to look. I
> > espically liked the comment: "/* Relative mouse input with absolute
> > mouse event : the real fun starts here... */" :)
> 
> I attached a small patch which you can apply to the CVS WineX.  It 
> corrects a particular problem with the Roller Coaster game.  It is a 
> general patch in the sense that it is IMO in line with the dinput 
> specs.  With this patch you can proudly join the group of users who wish to
> have "Symptom 3" (unnecessary warping) fixed.

Interesting. So some games don't call it? But are you sure exclusive
mode is the default cooperative level? It would seem odd to me if it
was.

In fact, on this page, it says that background and nonexclusive is the
default:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dx8_c/directx_cpp/input_ovusingdevices_1ol0.asp

The defaults could probably also be set in alloc_device instead of
explicitly checking in dinput_window_check. Though then the app's bad
behaviour wouldn't be warned about, but since that page does say that a
default setting is provided, perhaps it doesn't need to be something to
be warned about anyway.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.