Disable mouse locking on OSX -- causes event loop

This commit is contained in:
Charles J. Cliffe 2014-11-27 12:53:35 -05:00
parent 65a5dbb24d
commit 97e219724e

View File

@ -15,6 +15,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
deltaMouseY = mouseY - lastMouseY; deltaMouseY = mouseY - lastMouseY;
if (isMouseDown) { if (isMouseDown) {
#ifndef __APPLE__
if (horizDragLock && vertDragLock) { if (horizDragLock && vertDragLock) {
target->WarpPointer(originMouseX * ClientSize.x, originMouseY * ClientSize.y); target->WarpPointer(originMouseX * ClientSize.x, originMouseY * ClientSize.y);
mouseX = originMouseX; mouseX = originMouseX;
@ -26,6 +27,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
target->WarpPointer(originMouseX * ClientSize.x, event.m_y); target->WarpPointer(originMouseX * ClientSize.x, event.m_y);
mouseX = originMouseX; mouseX = originMouseX;
} }
#endif
} }
lastMouseX = mouseX; lastMouseX = mouseX;