Login  Register

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by Mr.Marbles on Jun 30, 2016; 1:19pm
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4036869.html

gouessej wrote
Mr.Marbles wrote
Just found another bug: https://hub.jmonkeyengine.org/t/jogl-support-jogl2-that-is/20891/334
Something wrong with the NewtMouseInput.
This is probably caused by this commit:
https://github.com/jMonkeyEngine/jmonkeyengine/commit/836bf856303dff607fd5700961c5b2766780842f#diff-1f750733002669c0916734c6e4b1ecb7

I cannot investigate right now.
I've investigated this bug a little more and found that the issue goes deeper than just that NewtMouseInput. The jogamp.newt.WindowImpl.confinePointer(boolean) actually moves the mouse cursor to the center of the screen using the warpPointer() method. Unfortunately, this mouse movement to the center of the screen is interpreted as a user action and causes the JME camera to jump. Why does the cursor need to be centered? Can it not simply be locked to whatever position it was last in?