OS X retina MouseEvent coordination

109 Views Asked by At

I am creating Java Swing Application using JOGL.

I want to get mouse coordination when mouse clicked in GLJPanel. If I experiment with a Retina display, a return coordinate is strange. The more deviation the coordinates are from the origin, the larger the gap. (I test only two model of Mac Book Pro for Retina) In my exam, that phenomenon does not occur except for Mac Book Pro Retina.

I want to unproject the event local coordination to global one, so I ask in JOGL community, but I was advised it cause from HiDPI.

I want to know the standard way to get local coordination of MouseEvent in HiDPI - Retina Display models of Macintosh first, and in the near future for Windows HiDPI models.

0

There are 0 best solutions below