[AD] mouse bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi!

I mailed some while ago due to a bug in the mouse routines (Mouse jumping
on screen).
I finally found the problem. Around line 420 are line like this:
if (!wnd_windowed) {
  if ((data > 32) || (data < -32))
    data *= 4;
  else if ((data > 16) || (data < -16))
    data *= 2;

  dinput_x += data;
}

Is there any reason for these lines? They have not been in WIP 3.9.3.2.
And in my game (mouse shooter) they make it impossible to play.
The effect may not be that big in smaller resolutions, but in 800x600
it's really notable.

Regards,

Lenny



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/