[Mac] Avoid calling into LegacyInputDriver
authorthefiddler <stapostol@gmail.com>
Sun, 4 May 2014 06:32:26 +0000 (08:32 +0200)
committerthefiddler <stapostol@gmail.com>
Sun, 4 May 2014 06:32:26 +0000 (08:32 +0200)
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs

index e632415..0760e38 100644 (file)
@@ -490,7 +490,7 @@ namespace OpenTK.Platform.MacOS
                     case NSEventType.OtherMouseDragged:
                     case NSEventType.MouseMoved:
                         {
-                            Point p = InputDriver.Mouse[0].Position;
+                            Point p = new Point(MouseState.X, MouseState.Y);
                             if (CursorVisible)
                             {
                                 // Use absolute coordinates