Re: GLJPanel/GLCanvas dpi scaling and AWT pointer coordinates
Posted by
Marc Kurtz on
Jul 05, 2024; 12:34pm
URL: https://forum.jogamp.org/GLJPanel-GLCanvas-dpi-scaling-and-AWT-pointer-coordinates-tp4043482p4043488.html
gouessej wrote
I assume that you try to add an AWT MouseListener to the NewtCanvasAWT.
Yes - this is what I am currently doing.
gouessej wrote
I would rather do this:
new AWTMouseAdapter(myAwtMouseListener).addTo(myNewtCanvasAWT);
This sounds like what I want to do - I have an API user that provides an
awt.event.MouseListener and I want to forward MouseEvents from NEWT to that AWT listener. However there is no constructor that takes an
awt.event.MouseListener, it only takes
newt.event.MouseListener. Am I missing something?