Problems with fast Mouse Movement

Hi,
first thanks for developing Jinput it’s great and it works quite well, for slow mouse movement.
At least on my Computer (Windows 98 with USB or PS/2 Logitech Mice) I have problems when making fast mouse movements to the left and/or down. I wrote a little test aplication that draws the information recieved from the pollData method onto a window. So moving my mouse to the left should result in an almost straight line to the left and it works at normal desktop mosue movements. But when I do very fast movements the returned data from the pollMethod jumps around so the line goes, up and down, forward and backward and instead of getting a straight line I get more like a zig-zag sqiqqly line. IN case of upwards or right movements I have no problems at all.
Any Ideas what this could be ? I’ll have to do more tests to find out if it is a problem with my hardware or OS, but any ideas how I could debug this problem a bit better would be greatly appreciated. I am using the last available nightly build jinput-1.1.0-b04-bin-windows.zip because I couldn’t find any newer Released versions. If this is an outdated version, could you point me to the most current release, or release a newer nightly ?
[EDIT] ok I tested a bit more. It seems now that it is either a Windows or a Logitech problem, because I tried it now on Windows XP with two different Logitech USB Mice both had the same problem. So it could be that Windows is not able to deal with such fast and long distance mouse movement or the problem is in the Logitech Mice. To reproduce it, slow down your coursor so much that you can circle the Diameter of a CD without reaching the Screen Edges. Now start making concentric circles with you mouse, try to do them real fast and make them bigger. On my Computer when the mouse reached a certain radius and speed the pointer started hopping around and didn’t even care to move in circles anymore. Maybe you have some more knowledge how I can deal with this [/EDIT]

Thanks, gruni

We actualy had that problem with the input for Megacorps on Logitech mice. I seems like they only can store a signed byte of movment data and when the movement is greater that 127 the signed bit got written and suddenly we got a negative movment instead.

The funny thing was that we couldn’t reproduce that issue on a Microsoft USB mouse. So we just figured that it was a Logitech issue…

// Tomas

Interesting. That’s Good to know. Can you give me any detail how I can debug if that is the same problem on my systems? Maybe I can contact Logitech and try to get some information about this from them. But I will try a microsoft mouse and see if it works with it.

I just made a quick app that printed the x,y movement of the mouse. Then I polled the mouse at different intervals, roughly like this:


while(true){
  Dim d = pollMouse();
  System.out.prinln(d);
  Thread.sleep(XXX);
}

Then I manually tested it with different mice :wink: You probably get the picture

Cheers
// Tomas :slight_smile:

Have you done any test. Did you come to the same conclusion as I did ?