Re: GLCanvas's mouseDragged problem
Posted by
gouessej on
URL: https://forum.jogamp.org/GLCanvas-s-mouseDragged-problem-tp4028590p4028597.html
If the interval is quite small, you just have to compute the points along the line between the previous point and the current point with a discretization step, it is not difficult.
Look at GL.setSwapInterval() to modify v-sync. NEWT is the native windowing toolkit of JOGL 2.0. I think it wouldn't really solve your problem because you wouldn't get something continuous anyway.
Edit.: You might obtain a more accurate result with v-sync disabled and by getting your point directly in display(GLAutoDrawable). Use java.awt.MouseInfo.getPointerInfo().getLocation() but if AWT doesn't update it more often than with mouseDragged, it won't solve your problem.