Forked Enjoy, mouse movement
[enjoyable.git] / TargetController.h
1 //
2 // TargetController.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 5/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 @class KeyInputTextView;
11 @class ConfigsController;
12 @class JoystickController;
13 @class Target;
14
15 @class TargetMouseMove;
16
17 @interface TargetController : NSObject {
18 IBOutlet KeyInputTextView* keyInput;
19 IBOutlet NSButtonCell *radioNoAction, *radioKey, *radioConfig;
20 IBOutlet NSMatrix* radioButtons;
21 IBOutlet NSMatrix* mouseBtnRadio;
22 IBOutlet NSTextField* title;
23 IBOutlet NSPopUpButton* configPopup;
24 IBOutlet ConfigsController* configsController;
25 IBOutlet JoystickController* joystickController;
26 id currentJsaction;
27 }
28
29 -(void) keyChanged;
30 -(void) load;
31 -(void) commit;
32 -(void) reset;
33 -(Target*) state;
34 -(void) refreshConfigsPreservingSelection: (BOOL) preserve;
35 -(IBAction)configChosen:(id)sender;
36 -(IBAction)radioChanged:(id)sender;
37 -(void) focusKey;
38
39 @property(readwrite) BOOL enabled;
40
41 @end