X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetToggleMouseScope.m;h=499e9c9a3e768d51441deb99fa93d576fe2aadea;hp=2f03c2fb74cfda407c851f7e7166173817e73e18;hb=f864d363128de19fc6591b77ae9226b34166d715;hpb=e24d2ce8323c713180d44933ca72cdb96ac356cd diff --git a/TargetToggleMouseScope.m b/TargetToggleMouseScope.m index 2f03c2f..499e9c9 100644 --- a/TargetToggleMouseScope.m +++ b/TargetToggleMouseScope.m @@ -8,7 +8,7 @@ #import "TargetToggleMouseScope.h" #import "ApplicationController.h" -#import "JoystickController.h" +#import "NJInputController.h" @implementation TargetToggleMouseScope @@ -28,9 +28,9 @@ - (void)trigger { // FIXME: It's hacky to get at the controller this way, but it's // also hacky to pass it. Shouldn't need to do either. - ApplicationController *ac = [NSApplication sharedApplication].delegate; - JoystickController *jc = ac.jsController; - [jc setFrontWindowOnly: ![jc frontWindowOnly]]; + ApplicationController *ac = NSApplication.sharedApplication.delegate; + NJInputController *jc = ac.jsController; + jc.frontWindowOnly = !jc.frontWindowOnly; } @end