OSX Retina Mouse Input Does not work for Mouse Released / Mouse Pressed [Solution]

The input for mouse events is totally off (Mouse Pressed and Mouse Released) when setting a OSX Build to High Resolution = YES (Setting set in the info.plist) for Retina mode.

This bug only applies when retina mode is enabled.

Issue Reported:
https://github.com/openframeworks/openFrameworks/issues/2998

Test Project to see the issue:


If you want to test out the bug using the test project, you will need a Retina Display MacBook or Screen.

PR with Solution to the problem:
https://github.com/danoli3/openFrameworks/commit/43c3eaa896e35f4dc7400160f7d76fe8bb915010
https://github.com/openframeworks/openFrameworks/pull/2999

Problem was:
The Mouse Moved and Mouse Dragged events were already
scaling the X,Y positions to the retina pixel level. This led to the
Mouse Pressed and Mouse Released events polling that already scaled
position and then multiplying that by the screen scale again.