X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FEnjoyableApplicationDelegate.m;h=83d077106c36fa8c0e29598f6389c76e68e3ab69;hp=96aa8ddb26b39ff6b2183da81daebd04a20c23fb;hb=1d10a45acf54217e765614cd2b4667297c1f7083;hpb=93d9951d6bd16b37e88b8fb6c38bc4afd6c9401e diff --git a/Classes/EnjoyableApplicationDelegate.m b/Classes/EnjoyableApplicationDelegate.m index 96aa8dd..83d0771 100644 --- a/Classes/EnjoyableApplicationDelegate.m +++ b/Classes/EnjoyableApplicationDelegate.m @@ -412,31 +412,31 @@ [self.outputController loadInput:dvc.selectedHandler]; } -- (void)deviceController:(NJInputController *)dc - didAddDevice:(NJDevice *)device { - [self.dvc addedDevice:device atIndex:dc.devices.count - 1]; +- (void)inputController:(NJInputController *)ic + didAddDevice:(NJDevice *)device { + [self.dvc addedDevice:device atIndex:ic.devices.count - 1]; } -- (void)deviceController:(NJInputController *)dc - didRemoveDeviceAtIndex:(NSInteger)idx { +- (void)inputController:(NJInputController *)ic + didRemoveDeviceAtIndex:(NSInteger)idx { [self.dvc removedDeviceAtIndex:idx]; } -- (void)deviceControllerDidStartHID:(NJInputController *)dc { +- (void)inputControllerDidStartHID:(NJInputController *)ic { [self.dvc hidStarted]; } -- (void)deviceControllerDidStopHID:(NJInputController *)dc { +- (void)inputControllerDidStopHID:(NJInputController *)ic { [self.dvc hidStopped]; } -- (void)deviceController:(NJInputController *)dc didInput:(NJInput *)input { +- (void)inputController:(NJInputController *)ic didInput:(NJInput *)input { [self.dvc expandAndSelectItem:input]; [self.outputController loadInput:input]; [self.outputController focusKey]; } -- (void)deviceController:(NJInputController *)dc didError:(NSError *)error { +- (void)inputController:(NJInputController *)ic didError:(NSError *)error { // Since the error shows the window, it can trigger another attempt // to re-open the HID manager, which will also probably fail and error, // so don't bother repeating ourselves.