| 316 | } |
| 317 | |
| 318 | Float2 GetMousePosition(SDLWindow* window, NSEvent* event) |
| 319 | { |
| 320 | NSRect frame = [(NSWindow*)window->GetNativePtr() frame]; |
| 321 | NSPoint point = [event locationInWindow]; |
| 322 | return Float2(point.x, frame.size.height - point.y) * MacPlatform::ScreenScale - GetWindowTitleSize(window); |
| 323 | } |
| 324 | |
| 325 | Float2 GetMousePosition(SDLWindow* window, const NSPoint& point) |
| 326 | { |
no test coverage detected