Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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 1286 times)
0 Members and 1 Guest are viewing this topic.
Offline gruni

Junior Newbie




Java is awesome


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

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

Offline Tomas

Junior Devvie




Agency9


« 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




Agency9


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

1  
2  
3  
4  
5  
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 Smiley

CTO Agency9
Offline Tomas

Junior Devvie




Agency9


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

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (31 views)
2014-11-22 12:13:56

xFryIx (72 views)
2014-11-13 12:34:49

digdugdiggy (51 views)
2014-11-12 21:11:50

digdugdiggy (45 views)
2014-11-12 21:10:15

digdugdiggy (39 views)
2014-11-12 21:09:33

kovacsa (63 views)
2014-11-07 19:57:14

TehJavaDev (68 views)
2014-11-03 22:04:50

BurntPizza (66 views)
2014-11-03 18:54:52

moogie (81 views)
2014-11-03 06:22:04

CopyableCougar4 (81 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!