Publish activated/deactivated as notifications.
[enjoyable.git] / TargetController.h
index 7e24cc4..9c03c08 100644 (file)
@@ -6,14 +6,15 @@
 //  Copyright 2009 University of Otago. All rights reserved.
 //
 
-@class KeyInputTextView;
+#import "NJKeyInputField.h"
+
 @class ConfigsController;
 @class JoystickController;
 @class Target;
 @class TargetMouseMove;
 
-@interface TargetController : NSObject {
-    IBOutlet KeyInputTextView *keyInput;
+@interface TargetController : NSObject <NJKeyInputFieldDelegate> {
+    IBOutlet NJKeyInputField *keyInput;
     IBOutlet NSMatrix *radioButtons;
     IBOutlet NSSegmentedControl *mouseDirSelect;
     IBOutlet NSSegmentedControl *mouseBtnSelect;
 
 @property (assign) BOOL enabled;
 
-- (void)keyChanged;
-- (void)load;
-- (void)reset;
-- (void)refreshConfigsPreservingSelection:(BOOL)preserve;
+- (void)loadCurrent;
+- (void)refreshConfigs;
 - (IBAction)configChosen:(id)sender;
 - (IBAction)radioChanged:(id)sender;
 - (IBAction)mdirChanged:(id)sender;