X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJOutputViewController.h;h=a35c735ecdb569e658bdbeec09081eb84bdce296;hp=2f50ef8634e2daaa18079849b4397b08e4a7afa8;hb=4fd28dc6483fd7c8323196abdbf4f1833a284e03;hpb=1d10a45acf54217e765614cd2b4667297c1f7083 diff --git a/Classes/NJOutputViewController.h b/Classes/NJOutputViewController.h index 2f50ef8..a35c735 100644 --- a/Classes/NJOutputViewController.h +++ b/Classes/NJOutputViewController.h @@ -8,9 +8,11 @@ #import "NJKeyInputField.h" -@class NJInputController; -@class NJOutput; @class NJInput; +@class NJOutput; +@class NJMapping; + +@protocol NJOutputViewControllerDelegate; @interface NJOutputViewController : NSObject { IBOutlet NJKeyInputField *keyInput; @@ -22,14 +24,15 @@ IBOutlet NSSlider *scrollSpeedSlider; IBOutlet NSTextField *title; IBOutlet NSPopUpButton *mappingPopup; - IBOutlet NJInputController *inputController; IBOutlet NSButton *smoothCheck; IBOutlet NSButton *unknownMapping; } -@property (assign) BOOL enabled; +@property (nonatomic, weak) IBOutlet id delegate; + +- (void)loadOutput:(NJOutput *)output forInput:(NJInput *)input; +- (void)focusKey; -- (void)loadInput:(NJInput *)input; - (IBAction)radioChanged:(id)sender; - (IBAction)mdirChanged:(id)sender; - (IBAction)mbtnChanged:(id)sender; @@ -38,6 +41,14 @@ - (IBAction)scrollSpeedChanged:(id)sender; - (IBAction)scrollTypeChanged:(id)sender; -- (void)focusKey; +@end + +@protocol NJOutputViewControllerDelegate + +- (NJMapping *)outputViewController:(NJOutputViewController *)ovc + mappingForIndex:(NSUInteger)index; +- (void)outputViewController:(NJOutputViewController *)ovc + setOutput:(NJOutput *)output + forInput:(NJInput *)input; @end