X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JoystickController.m;h=1bf5b4384b16d4ccb560fcd3e72f13e1526ca8d8;hp=15512956eb64ef04eeeb26eba2ce878be1a95e29;hb=7f9b53485ac2750ac9778b0aaafa62f7bafa251f;hpb=fc6d0fdabe55f8ae0c417f7c4be745d51a47e0bd diff --git a/JoystickController.m b/JoystickController.m index 1551295..1bf5b43 100644 --- 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]; - if([[[NSApplication sharedApplication] delegate] active]) { + if([(ApplicationController *)[[NSApplication sharedApplication] delegate] active]) { // for reals JSAction* mainAction = [js actionForEvent: value]; if(!mainAction)