Rename the application delegate, and hopefully catch the last vestiges of the old...
[enjoyable.git] / NJOutputSwitchMouseMode.m
index 3332a91..1750869 100644 (file)
@@ -7,8 +7,8 @@
 
 #import "NJOutputSwitchMouseMode.h"
 
-#import "ApplicationController.h"
-#import "NJInputController.h"
+#import "EnjoyableApplicationDelegate.h"
+#import "NJDeviceController.h"
 
 @implementation NJOutputSwitchMouseMode
 
@@ -27,8 +27,8 @@
 - (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;
-    NJInputController *jc = ac.inputController;
+    EnjoyableApplicationDelegate *ac = NSApplication.sharedApplication.delegate;
+    NJDeviceController *jc = ac.inputController;
     jc.frontWindowOnly = !jc.frontWindowOnly;
 }