Login  Register

Re: GLJPanel/GLCanvas dpi scaling and AWT pointer coordinates

Posted by Marc Kurtz on Jul 04, 2024; 10:40pm
URL: https://forum.jogamp.org/GLJPanel-GLCanvas-dpi-scaling-and-AWT-pointer-coordinates-tp4043482p4043486.html

I seem to have made some progress with integrating NewtCanvasAWT, and I've been looking at the AWTMouseAdapter to help bridge the gap between the pointers. I see that NewtCanvasAWT does some work setting up an AWTMouseAdapter, but to be sure I am also calling new AWTMouseAdapter(glWindow).addTo(newtCanvasAwt); . However - if I add a mouse listener to the NewtCanvasAWT I don't get any mouse events. Yet if I add a mouse listener to the GLWindow I do get mouse events. So far, I can't figure out why.