Re: Mouse Cursor Problems
Greg Furstenwerth <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
Nadav Frum wrote:
>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
>----------
>
>
>
I have actually commented out some code that caused the mouse to go out
of sync. I do not see any ill side effects at this time as it was
doubleclicking before I commented out the code.
----Line 487-491----- /dlls/dinput/mouse/main.c
/* if (changed) {
if (This->need_warp != WARP_NEEDED && This->need_warp != WARP_STARTED) {
This->need_warp = WARP_NEEDED;
}
}*/
That prevents the mouse from going out of sync as far as I can see
without side affects. Now the problem is to deal with the double
clicking cause everything seems to work fine now :D other than that.
I have also used 2 of your patches.
http://lists.transgaming.org/pipermail/winex-devel/2004-February/000117.html
http://lists.transgaming.org/pipermail/winex-devel/2004-February/000147.html
If you have any further ideas please feel free to comment, thanks
>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
>>
>>
>
>
>
>
>