Re: How to refer GL context in AWT Mouse Event
Posted by n.j. on May 28, 2017; 4:04am
URL: https://forum.jogamp.org/How-to-refer-GL-context-in-AWT-Mouse-Event-tp4037905p4038009.html
Dear gouessej,
I am very afraid to say, I have to check if the HiDPI mode is enabled and
scale like
int x = mouseEvent.getX();
int y = mouseEvent.getY();
if (isOSX() && isHiDPIenabled() && isHiDPImode()) {
x = x / 2;
y = y / 2;
}
I have to do like this?
or do you have cool and generic answers?