Re: mouse input
Posted by
kaesemeister on
Nov 13, 2011; 5:47pm
URL: https://forum.jogamp.org/SOLVED-mouse-input-tp3504609p3504846.html
Hi..
thx for your answer.. I tried it without thread already, but it didnt changed anything.
I found a solution which works great: I don't track mouse movement via AWT anymore. I found a library called JInput. It gives me direct access to raw mouse input (or any other controller). My current solution works as follows:
Input Thread (10ms)
- collect and use mouse movement information
- recenter mouse via Robot
AWT MouseMotionListener is not needed anymore.
Here is the JInput forum where I found a starting guide:
http://www.java-gaming.org/index.php?board=27.0