mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(Apple HID) Cleanups
This commit is contained in:
parent
0807ac0165
commit
56736d4eeb
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user