Mouse Cursor Problems

Nadav Frum <[email protected]>
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <Pine.LNX.4.44_heb2.10.0405051335140.7349-100000@localhost.localdomain>
My diagnosis for the original problem was 'unnecessary warping'.  This 
situation arose when the XServer was charged with drawing the cursor and 
dinput thought it was drawn by the game.

I fixed RCT2 by selectively disabling the warping mechanism when the game 
requests mouse data.

However, this is not the only time when warping is applied.  Warping is 
also sometimes applied when the mouse is acquired 
(in SysMouseAImpl_Acquire). If the mouse is warped when it is acquired and the
XServer is later charged with drawing the cursor, the position of the 
cursor on the screen may be out of sync with where the game thinks it is.

IMO the warping inside SysMouseAImpl_Acquire serves no purpose and can be 
commented out.  This should solve the syncing problem.  It should not 
cause any other ill-effects though. 

Nadav Frum
----------

On Sun, 2 May 2004 Greg Furstenwerth wrote:

> Ok I have been working with Lineage 2 and been making a bit of progress
> and I am a bit confused now at this point. I have stopped the warping by
> using Nadav Frum's RCT2 patch. From there it made it so the mouse would
> not warp but go out of sync I fixed that by commenting some code out of
> the /dlls/dinput/mouse/main.c. Now my problem is that I cannot seem to
> click on anything ingame without it doubleclicking. I know for a fact it
> is doubleclicking cause if I click my hotbar arrow to change from say
> bar 1 to bar 2 it moves me to bar 3...
> 
> I also notice that there are other problems such as Crashing to Desktop
> but I will worry about that later I really want to get this fixed with
> the double clicking cause it makes it impossible to open anything or
> move boxes around on screen.
> 
> Crashing to Desktop is caused when you drag a icon or try to use hotbar
> it says its unable to draw cursor. Not quite sure any feedback would be
> wonderful
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.