projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Type references to the application delegate to prevent warnings.
[enjoyable.git]
/
JoystickController.m
diff --git
a/JoystickController.m
b/JoystickController.m
index
1551295
..
1bf5b43
100644
(file)
--- a/
JoystickController.m
+++ b/
JoystickController.m
@@
-65,7
+65,7
@@
void input_callback(void* inContext, IOReturn inResult, void* inSender, IOHIDVal
IOHIDDeviceRef device = IOHIDQueueGetDevice((IOHIDQueueRef) inSender);
Joystick* js = [self findJoystickByRef: device];
IOHIDDeviceRef device = IOHIDQueueGetDevice((IOHIDQueueRef) inSender);
Joystick* js = [self findJoystickByRef: device];
- if([[[NSApplication sharedApplication] delegate] active]) {
+ if([
(ApplicationController *)
[[NSApplication sharedApplication] delegate] active]) {
// for reals
JSAction* mainAction = [js actionForEvent: value];
if(!mainAction)
// for reals
JSAction* mainAction = [js actionForEvent: value];
if(!mainAction)