mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-21 02:28:36 +00:00
Fixed mouse position not being received.
This commit is contained in:
parent
9183e3ae0d
commit
3798d268dc
|
@ -82,15 +82,15 @@ namespace OpenTK.Platform.MacOS
|
||||||
[DllImport(LibObjC, EntryPoint="objc_msgSend")]
|
[DllImport(LibObjC, EntryPoint="objc_msgSend")]
|
||||||
public extern static float SendFloat(IntPtr receiver, IntPtr selector);
|
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")]
|
[DllImport (LibObjC, EntryPoint="objc_msgSend_stret")]
|
||||||
extern static void SendRect(out System.Drawing.RectangleF retval, IntPtr receiver, IntPtr selector);
|
extern static void SendRect(out System.Drawing.RectangleF retval, IntPtr receiver, IntPtr selector);
|
||||||
|
|
||||||
[DllImport (LibObjC, EntryPoint="objc_msgSend_stret")]
|
[DllImport (LibObjC, EntryPoint="objc_msgSend_stret")]
|
||||||
extern static void SendRect(out System.Drawing.RectangleF retval, IntPtr receiver, IntPtr selector, RectangleF rect1);
|
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)
|
public static RectangleF SendRect(IntPtr receiver, IntPtr selector)
|
||||||
{
|
{
|
||||||
RectangleF r;
|
RectangleF r;
|
||||||
|
@ -105,13 +105,6 @@ namespace OpenTK.Platform.MacOS
|
||||||
return r;
|
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)
|
public static IntPtr ToNSString(string str)
|
||||||
{
|
{
|
||||||
if (str == null)
|
if (str == null)
|
||||||
|
|
Loading…
Reference in a new issue