Allow clicking on the key field directly.
[enjoyable.git] / JoystickController.h
index c698c17..5e46256 100644 (file)
@@ -6,35 +6,26 @@
 //  Copyright 2009 University of Otago. All rights reserved.
 //
 
-#import <Cocoa/Cocoa.h>
-#import <IOKit/hid/IOHIDLib.h>
-
 @class Joystick;
 @class JSAction;
 @class ConfigsController;
 @class TargetController;
+@class Config;
 
 @interface JoystickController : NSObject {
-       NSMutableArray *joysticks;
-    NSMutableArray *runningTargets;
-       IOHIDManagerRef hidManager;
-       IBOutlet NSOutlineView* outlineView;
-       IBOutlet TargetController* targetController;
-       IBOutlet ConfigsController* configsController;
-       id selectedAction;
-       BOOL programmaticallySelecting;
-    BOOL frontWindowOnly;
-    
-    @public
-    NSPoint mouseLoc;
+       IBOutlet NSOutlineView *outlineView;
+       IBOutlet TargetController *targetController;
+       IBOutlet ConfigsController *configsController;
 }
 
--(void) setup;
--(Joystick*) findJoystickByRef: (IOHIDDeviceRef) device;
+- (void)setup;
+- (Joystick *)findJoystickByRef:(IOHIDDeviceRef)device;
 
+@property (readonly) Config *currentConfig;
 @property (readonly) JSAction *selectedAction;
 @property (readonly) NSMutableArray *joysticks;
-@property (readonly) NSMutableArray *runningTargets;
-@property (readwrite) BOOL frontWindowOnly;
+@property (assign) NSPoint mouseLoc;
+@property (assign) BOOL frontWindowOnly;
+@property (assign) BOOL sendingRealEvents;
 
 @end