Merge pull request #3574 from palxex/master
fix El Capitan WiimoteReal pairing problem and refresh crash problem
This commit is contained in:
commit
c2c1f839dd
|
@ -169,7 +169,8 @@ void WiimoteScanner::FindWiimotes(std::vector<Wiimote*> & found_wiimotes, Wiimot
|
||||||
@{ @kIOHIDVendorIDKey: @0x057e, @kIOHIDProductIDKey: @0x0330 },
|
@{ @kIOHIDVendorIDKey: @0x057e, @kIOHIDProductIDKey: @0x0330 },
|
||||||
];
|
];
|
||||||
IOHIDManagerSetDeviceMatchingMultiple(hid, (CFArrayRef)criteria);
|
IOHIDManagerSetDeviceMatchingMultiple(hid, (CFArrayRef)criteria);
|
||||||
CFRunLoopRun();
|
if (IOHIDManagerOpen(hid, kIOHIDOptionsTypeNone) != kIOReturnSuccess)
|
||||||
|
WARN_LOG(WIIMOTE, "Failed to open HID Manager");
|
||||||
CFSetRef devices = IOHIDManagerCopyDevices(hid);
|
CFSetRef devices = IOHIDManagerCopyDevices(hid);
|
||||||
if (devices)
|
if (devices)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue