From cc2c6ed12ca38c56a4263d95af75692d6cf716a5 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 28 Feb 2013 19:25:33 +0100 Subject: [PATCH] Fix inverted logic. --- JoystickController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2