Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Problems with fast Mouse Movement  (Read 1541 times)
0 Members and 1 Guest are viewing this topic.
Offline gruni

Junior Newbie

Java is awesome

« Posted 2005-03-22 11:17:47 »

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 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

Offline Tomas

Junior Devvie


« Reply #1 - Posted 2005-03-22 19:19:49 »

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

CTO Agency9
Offline gruni

Junior Newbie

Java is awesome

« Reply #2 - Posted 2005-03-23 06:39:52 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Tomas

Junior Devvie


« Reply #3 - Posted 2005-03-23 07:50:09 »

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:

  Dim d = pollMouse();

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

// Tomas Smiley

CTO Agency9
Offline Tomas

Junior Devvie


« Reply #4 - Posted 2005-04-08 11:17:55 »

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

CTO Agency9
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Coldstream24 (16 views)
2015-09-03 00:41:28

Andrew_3ds (26 views)
2015-09-01 19:08:10

afikri (17 views)
2015-08-31 09:30:22

afikri (25 views)
2015-08-31 09:30:07

afikri (13 views)
2015-08-31 09:27:24

afikri (16 views)
2015-08-31 09:26:40

Roquen (30 views)
2015-08-29 11:30:54

GamerC4 (36 views)
2015-08-22 20:38:50

GamerC4 (33 views)
2015-08-22 20:37:18

GamerC4 (40 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!