Mercurial > hg > openttd
changeset 7964:4d6fc5a6def7 draft
(svn r11520) -Fix: [OSX] The cocoa video driver let the mouse cursor escape the window when using rmb scrolling. Thanks ln- for pointing this out and providing a fix.
author | egladil <egladil@openttd.org> |
---|---|
date | Sun, 25 Nov 2007 12:58:32 +0000 |
parents | c35c4ff096c4 |
children | c4ef1371c850 |
files | src/video/cocoa/event.mm |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -430,7 +430,6 @@ switch ([event type]) { case NSMouseMoved: case NSOtherMouseDragged: - case NSRightMouseDragged: case NSLeftMouseDragged: pt = _cocoa_subdriver->GetMouseLocation(event); if (!_cocoa_subdriver->MouseIsInsideView(&pt) && @@ -444,6 +443,12 @@ QZ_MouseMovedEvent((int)pt.x, (int)pt.y); break; + case NSRightMouseDragged: + pt = _cocoa_subdriver->GetMouseLocation(event); + QZ_HideMouse(); + QZ_MouseMovedEvent((int)pt.x, (int)pt.y); + break; + case NSLeftMouseDown: { uint32 keymask = 0;