Fixed mouse position not being received.

This commit is contained in:
Olle Håkansson 2014-04-21 19:41:36 +02:00 committed by thefiddler
parent 9183e3ae0d
commit 3798d268dc

View file

@ -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)