okamstudio/godot — pull request #24 by jeremycw (2014-02-11 03:44:15+00:00)
Title: Fix mouse coordinates on OS X retina displays

`NSEvent` reports mouse coordinates scaled by the pixel density but Godot is currently not expecting this. This causes mouse clicks to happen in unexpected positions. The solution is to report the mouse position scaled up by the `- [NSWindow backingScaleFactor]` so that Godot gets coordinates in exact pixels like it's expecting.

This is only a stop gap solution until proper HDPI support is added.