X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetToggleMouseScope.m;h=0413b731d937a0b237d75c782dca1b6b359ddd06;hp=863a35fda7d1df27182ff543ff8fec040ddbe59a;hb=e2a4d830dd9817f6a515a3b1b6aa152d3bb98c2b;hpb=f9903acac24bb4be43e370d5f3eb942510f727e1 diff --git a/TargetToggleMouseScope.m b/TargetToggleMouseScope.m index 863a35f..0413b73 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 @@ -21,7 +21,7 @@ } + (Target *)targetDeserialize:(NSDictionary *)serialization - withConfigs:(NSArray *)configs { + withMappings:(NSArray *)mappings { TargetToggleMouseScope *target = [[TargetToggleMouseScope alloc] init]; return target; } @@ -29,7 +29,7 @@ // 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; + NJInputController *jc = ac.inputController; jc.frontWindowOnly = !jc.frontWindowOnly; }