projects
/
enjoyable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24d2ce
)
Show HID error as a sheet so the main window still appears.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 1 Mar 2013 19:28:06 +0000
(20:28 +0100)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 1 Mar 2013 19:28:06 +0000
(20:28 +0100)
JoystickController.m
patch
|
blob
|
history
diff --git
a/JoystickController.m
b/JoystickController.m
index 33201f5ba2b98e6235f6f5506c2fc129591785fd..967a935c7b7baa94fe23eb0433f35ce52dca08bb 100644
(file)
--- a/
JoystickController.m
+++ b/
JoystickController.m
@@
-177,7
+177,10
@@
static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD
informativeTextWithFormat:@"Error 0x%08x occured trying to access your devices. "
@"Input may not be correctly detected or mapped.",
ret]
- runModal];
+ beginSheetModalForWindow:outlineView.window
+ modalDelegate:nil
+ didEndSelector:nil
+ contextInfo:nil];
}
IOHIDManagerRegisterDeviceMatchingCallback(hidManager, add_callback, (__bridge void *)self);