mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 12:46:54 +00:00
[Mac] Fixed DllEntryPointNotFound crash on device unplugging
This commit is contained in:
parent
2ee24efb2f
commit
892d129e54
|
@ -210,7 +210,7 @@ namespace OpenTK.Platform.MacOS
|
|||
if (recognized)
|
||||
{
|
||||
NativeMethods.IOHIDDeviceRegisterInputValueCallback(device, IntPtr.Zero, IntPtr.Zero);
|
||||
NativeMethods.IOHIDDeviceUnscheduleWithRunLoop(device, RunLoop, InputLoopMode);
|
||||
NativeMethods.IOHIDDeviceUnscheduleFromRunLoop(device, RunLoop, InputLoopMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -849,7 +849,7 @@ namespace OpenTK.Platform.MacOS
|
|||
CFString inCFRunLoopMode);
|
||||
|
||||
[DllImport(hid)]
|
||||
public static extern void IOHIDDeviceUnscheduleWithRunLoop(
|
||||
public static extern void IOHIDDeviceUnscheduleFromRunLoop(
|
||||
IOHIDDeviceRef device,
|
||||
CFRunLoop inCFRunLoop,
|
||||
CFString inCFRunLoopMode);
|
||||
|
|
Loading…
Reference in a new issue