X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetController.h;fp=TargetController.h;h=f26421057db9507615f48e2fa600e84884844fd9;hp=0000000000000000000000000000000000000000;hb=530009447c5bbd360ac5023979cffc6d32a28df3;hpb=5f07baa8cb03a2f6aa06338bfeb31dad3c3ca29f diff --git a/TargetController.h b/TargetController.h new file mode 100644 index 0000000..f264210 --- /dev/null +++ b/TargetController.h @@ -0,0 +1,41 @@ +// +// TargetController.h +// Enjoy +// +// Created by Sam McCall on 5/05/09. +// Copyright 2009 University of Otago. All rights reserved. +// + +#import +@class KeyInputTextView; +@class ConfigsController; +@class JoystickController; +@class Target; + +@class TargetMouseMove; + +@interface TargetController : NSObject { + IBOutlet KeyInputTextView* keyInput; + IBOutlet NSButtonCell *radioNoAction, *radioKey, *radioConfig; + IBOutlet NSMatrix* radioButtons; + IBOutlet NSMatrix* mouseBtnRadio; + IBOutlet NSTextField* title; + IBOutlet NSPopUpButton* configPopup; + IBOutlet ConfigsController* configsController; + IBOutlet JoystickController* joystickController; + id currentJsaction; +} + +-(void) keyChanged; +-(void) load; +-(void) commit; +-(void) reset; +-(Target*) state; +-(void) refreshConfigsPreservingSelection: (BOOL) preserve; +-(IBAction)configChosen:(id)sender; +-(IBAction)radioChanged:(id)sender; +-(void) focusKey; + +@property(readwrite) BOOL enabled; + +@end