From: Joe Wreschnig Date: Thu, 28 Feb 2013 18:25:33 +0000 (+0100) Subject: Fix inverted logic. X-Git-Tag: version-1.0~91 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=cc2c6ed12ca38c56a4263d95af75692d6cf716a5;p=enjoyable.git Fix inverted logic. --- diff --git a/JoystickController.m b/JoystickController.m index ed941ed..13db938 100644 --- a/JoystickController.m +++ b/JoystickController.m @@ -158,7 +158,7 @@ static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD IOHIDManagerScheduleWithRunLoop(hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); IOReturn ret = IOHIDManagerOpen(hidManager, kIOHIDOptionsTypeNone); - if (ret == kIOReturnSuccess) { + if (ret != kIOReturnSuccess) { [[NSAlert alertWithMessageText:@"Input devices are unavailable" defaultButton:nil alternateButton:nil