LWJGL
May 19, 2013, 10:14:31
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
Bug Reports / RFE
>
Mouse DX/DY alternates between high and low values
Pages: [
1
]
« previous
next »
Print
Author
Topic: Mouse DX/DY alternates between high and low values (Read 691 times)
steamednotfried
Newbie
Posts: 5
Mouse DX/DY alternates between high and low values
«
on:
July 20, 2012, 04:03:35 »
Upon implementing a first person camera, I noticed some jitteryness when using the mouse for turning/looking. I tried printing out the mouse's DX in each frame and noticed something odd. When the mouse was moving at an approximately steady speed in real life, what was reported in the printout was something like this:
219, 160, 252, 171, 273, 177, 267, 167 and so on.
These are the successive DX's in each frame. Notice how they alternate between high and low values. This general pattern happens every time I run the program and at all times within each run. I have checked that the same time elapses between the successive DX's. The same thing happens with different mice. But all of the mice work fine while playing other fps games on the same computer. Is this a bug in LWJGL or is there something else that I'm missing?
Thanks.
Edit: I should add that the same thing happens with the DY's.
Logged
CaleyM
Newbie
Posts: 4
Re: Mouse DX/DY alternates between high and low values
«
Reply #1 on:
July 20, 2012, 05:04:30 »
Out of curiosity I tried commenting out Display.sync() and the feed looked like that.
Logged
steamednotfried
Newbie
Posts: 5
Re: Mouse DX/DY alternates between high and low values
«
Reply #2 on:
July 20, 2012, 05:24:14 »
Quote from: CaleyM on July 20, 2012, 05:04:30
Out of curiosity I tried commenting out Display.sync() and the feed looked like that.
Thanks, but I haven't commented it out and my feed looks like that.
Logged
princec
Nerdus Imperius
Posts: 1867
Re: Mouse DX/DY alternates between high and low values
«
Reply #3 on:
July 20, 2012, 09:06:58 »
This may be related to an ongoing discussion about issues with getDX/DY on Windows which causes it to be unreliably jittery. See
here
.
Cas
Logged
Puppygames - Play Revenge of the Titans here!
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...