Re: GLJPanel/GLCanvas dpi scaling and AWT pointer coordinates
Posted by
gouessej on
Jul 05, 2024; 7:20am
URL: https://forum.jogamp.org/GLJPanel-GLCanvas-dpi-scaling-and-AWT-pointer-coordinates-tp4043482p4043487.html
Please can you show a small piece of your source code so that I can find the culprit? I assume that you try to add an AWT MouseListener to the NewtCanvasAWT.
I would rather do this:
new AWTMouseAdapter(myAwtMouseListener).addTo(myNewtCanvasAWT);
It attaches an adapter to the NewtCanvasAWT which makes the translation between AWT and NEWT. Look at the examples in the
documentation.