X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJDeviceController.m;fp=Classes%2FNJDeviceController.m;h=1b64aaf3f694e5dd26eb3c8324ebf0de77c82e04;hp=23a0932d497f21119a16ddf9e93965d9699f8fd9;hb=6cee2033d1c0fc0dacf444064305b9e7e87672a9;hpb=6a7c78afa7b8a34901f59a79afe41d18855734bc diff --git a/Classes/NJDeviceController.m b/Classes/NJDeviceController.m index 23a0932..1b64aaf 100644 --- a/Classes/NJDeviceController.m +++ b/Classes/NJDeviceController.m @@ -13,7 +13,6 @@ #import "NJInput.h" #import "NJOutput.h" #import "NJEvents.h" -#import "NJDeviceViewController.h" @implementation NJDeviceController { NJHIDManager *_hidManager; @@ -198,8 +197,6 @@ - (void)setSimulatingEvents:(BOOL)simulatingEvents { if (simulatingEvents != _simulatingEvents) { _simulatingEvents = simulatingEvents; - NSInteger state = simulatingEvents ? NSOnState : NSOffState; - simulatingEventsButton.state = state; NSString *name = simulatingEvents ? NJEventSimulationStarted : NJEventSimulationStopped; @@ -218,19 +215,6 @@ [self stopHid]; } -- (IBAction)simulatingEventsChanged:(NSButton *)sender { - self.simulatingEvents = sender.state == NSOnState; -} - -- (NSInteger)numberOfDevicesInDeviceList:(NJDeviceViewController *)dvc { - return _devices.count; -} - -- (NJDevice *)deviceViewController:(NJDeviceViewController *)dvc - deviceForIndex:(NSUInteger)idx { - return _devices[idx]; -} - - (NJInputPathElement *)objectForKeyedSubscript:(NSString *)uid { for (NJDevice *dev in _devices) { id item = [dev elementForUID:uid];