From 3798d268dcf1f6cf93baf94d8ba253d7aa318748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olle=20H=C3=A5kansson?= Date: Mon, 21 Apr 2014 19:41:36 +0200 Subject: [PATCH] Fixed mouse position not being received. --- Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs b/Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs index 0f0d45f9..ec476b8f 100644 --- a/Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs +++ b/Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs @@ -82,15 +82,15 @@ namespace OpenTK.Platform.MacOS [DllImport(LibObjC, EntryPoint="objc_msgSend")] public extern static float SendFloat(IntPtr receiver, IntPtr selector); + [DllImport (LibObjC, EntryPoint="objc_msgSend")] // Not the _stret version, perhaps because a PointF fits in one register? + public extern static PointF SendPoint(IntPtr receiver, IntPtr selector); + [DllImport (LibObjC, EntryPoint="objc_msgSend_stret")] extern static void SendRect(out System.Drawing.RectangleF retval, IntPtr receiver, IntPtr selector); [DllImport (LibObjC, EntryPoint="objc_msgSend_stret")] extern static void SendRect(out System.Drawing.RectangleF retval, IntPtr receiver, IntPtr selector, RectangleF rect1); - [DllImport (LibObjC, EntryPoint="objc_msgSend_stret")] - extern static void SendPoint(out System.Drawing.PointF retval, IntPtr receiver, IntPtr selector); - public static RectangleF SendRect(IntPtr receiver, IntPtr selector) { RectangleF r; @@ -105,13 +105,6 @@ namespace OpenTK.Platform.MacOS return r; } - public static PointF SendPoint(IntPtr receiver, IntPtr selector) - { - PointF r; - SendPoint(out r, receiver, selector); - return r; - } - public static IntPtr ToNSString(string str) { if (str == null)