(Apple HID) Use CFRUnLoopGetCurrent() instead of CFRunLoopGetMain()

This commit is contained in:
Twinaphex 2015-03-07 15:47:23 +01:00
parent 2ead788aa3
commit 3ec863d4a5

View File

@ -244,8 +244,8 @@ static bool apple_hid_init(void)
IOHIDManagerRegisterDeviceMatchingCallback(g_hid_manager,
add_device, 0);
IOHIDManagerScheduleWithRunLoop(g_hid_manager, CFRunLoopGetMain(),
kCFRunLoopCommonModes);
IOHIDManagerScheduleWithRunLoop(g_hid_manager, CFRunLoopGetCurrent(),
kCFRunLoopDefaultMode);
IOHIDManagerOpen(g_hid_manager, kIOHIDOptionsTypeNone);