Mouse playin up, in latest build

Started by bobjob, April 01, 2010, 11:21:48

Previous topic - Next topic

bobjob

I put the latest build of LWJGL on my comp, for the openGL test.

now it seems that the mouse goes crazy when it is grabbed.
My cursor position code bascially works like this
x = Mouse.getX();
y = Mouse.getY();
            	if (x < 0) x = 0;
            	if (x > Settings.width) x = Settings.width;
            	if (y < 0) y = 0;
            	if (y > Settings.height) y = Settings.height;


also something else i noticed, when doing a quick test to try fix it, is that:
System.out.println(Mouse.getEventX());
System.out.println(Mouse.getX());
will return the same value.
Is there a new way of using the Mouse class that Im not aware of?

kappa

looks like something broke in last nights mouse patch :) (Can be confirmed if you grab the nightly build just before the latest build)

BTW which OS are you on? (I presume its windows)

also when you say mouse goes crazy can you elaborate a bit more on how? (flashing at the centre or something)

bobjob

the only problem is with the co-ordinates.

It moves alot for a small movement of the mouse. I also noticed that the direction is also not accurate. sometimes ill move the mouse down, and the value of getY() will go up.

yeah the OS is windows XP.

I dont think I can confirm as there was a problem with the build before this one, something like jar is "22" but something else is "21".

kappa

can't be sure yet but i'm guessing that some of those symptoms are caused due to the auto centering of mouse when mouse is grabbed being removed (WindowsDisplay).

spasi

Should be fixed on the next build.