From 56736d4eeb3f455311e57ec198831c819e615a36 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 31 Mar 2015 15:44:19 +0200 Subject: [PATCH] (Apple HID) Cleanups --- input/drivers_hid/apple_hid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input/drivers_hid/apple_hid.c b/input/drivers_hid/apple_hid.c index adf06c32a6..371b2bb8d5 100644 --- a/input/drivers_hid/apple_hid.c +++ b/input/drivers_hid/apple_hid.c @@ -308,6 +308,10 @@ static bool apple_hid_init(void) kCFAllocatorDefault, kIOHIDOptionsTypeNone))) goto error; + IOHIDManagerSetDeviceMatching(hid_apple->hid_ptr, NULL); + IOHIDManagerScheduleWithRunLoop(hid_apple->hid_ptr, CFRunLoopGetCurrent(), + kCFRunLoopDefaultMode); + matcher = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks); @@ -321,10 +325,6 @@ static bool apple_hid_init(void) IOHIDManagerRegisterDeviceMatchingCallback(hid_apple->hid_ptr, add_device, 0); - IOHIDManagerScheduleWithRunLoop(hid_apple->hid_ptr, CFRunLoopGetCurrent(), - kCFRunLoopDefaultMode); - - IOHIDManagerOpen(hid_apple->hid_ptr, kIOHIDOptionsTypeNone); hid_apple->slots = (joypad_connection_t*)pad_connection_init(MAX_USERS);