Re: Re: mouse cursor problems

Ove Kaaven <[email protected]>
Newsgroups gmane.comp.emulators.winex.devel
Organization TransGaming Technologies Inc
Message-ID <1076546064.1412.72.camel@renegade>
tor, 12.02.2004 kl. 00.57 skrev Gregory S. Hayes:
> The lines:
> 
> trace:dinput:dinput_mouse_warp Warping mouse to -9327032 - 2611172
> trace:cursor:X11DRV_SetCursorPos warping to (-9327032,2611172)
> 
> appear alot. I am not sure if this is an indication of the problem or
> somehow normal.

Negative values there are not all that normal.

Would need to see more of the beginning of the trace to see what might
be going on, though. In particular, is there an Acquire call on the
mouse device?

If the game didn't call Acquire, you could try to edit
dlls/dinput/mouse/main.c and see if copying this code chunk from
GetDeviceData

  if (This->acquired == 0) {
      WARN(" application tries to get data from an unacquired device !\n");
      return DIERR_NOTACQUIRED;
  }

into a similar place in GetDeviceState helps. Returning this error
should make the game call Acquire.
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.