Merge pull request #3574 from palxex/master

fix El Capitan WiimoteReal pairing problem and refresh crash problem
This commit is contained in:
Pierre Bourdon 2016-01-30 13:17:08 +01:00
commit c2c1f839dd
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ void WiimoteScanner::FindWiimotes(std::vector<Wiimote*> & found_wiimotes, Wiimot
@{ @kIOHIDVendorIDKey: @0x057e, @kIOHIDProductIDKey: @0x0330 },
];
IOHIDManagerSetDeviceMatchingMultiple(hid, (CFArrayRef)criteria);
CFRunLoopRun();
if (IOHIDManagerOpen(hid, kIOHIDOptionsTypeNone) != kIOReturnSuccess)
WARN_LOG(WIIMOTE, "Failed to open HID Manager");
CFSetRef devices = IOHIDManagerCopyDevices(hid);
if (devices)
{