| 878 | } |
| 879 | |
| 880 | void MacWindow::OnUpdate(float dt) |
| 881 | { |
| 882 | if (IsMouseTracking()) |
| 883 | { |
| 884 | // Keep sending mouse movement events no matter if window has focus |
| 885 | Float2 mousePos = Platform::GetMousePosition(); |
| 886 | if (_mouseTrackPos != mousePos) |
| 887 | { |
| 888 | _mouseTrackPos = mousePos; |
| 889 | Input::Mouse->OnMouseMove(mousePos, this); |
| 890 | } |
| 891 | } |
| 892 | |
| 893 | WindowBase::OnUpdate(dt); |
| 894 | } |
| 895 | |
| 896 | void MacWindow::Show() |
| 897 | { |
nothing calls this directly
no test coverage detected