Change KeyInputTextView from a TextView to a TextField. Simplifies the nib contents...
[enjoyable.git] / JoystickController.h
1 //
2 // JoystickController.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import <IOKit/hid/IOHIDLib.h>
11
12 @class Joystick;
13 @class JSAction;
14 @class ConfigsController;
15 @class TargetController;
16
17 @interface JoystickController : NSObject {
18 NSMutableArray *joysticks;
19 NSMutableArray *runningTargets;
20 IOHIDManagerRef hidManager;
21 IBOutlet NSOutlineView* outlineView;
22 IBOutlet TargetController* targetController;
23 IBOutlet ConfigsController* configsController;
24 id selectedAction;
25 BOOL programmaticallySelecting;
26 BOOL frontWindowOnly;
27
28 @public
29 NSPoint mouseLoc;
30 }
31
32 -(void) setup;
33 -(Joystick*) findJoystickByRef: (IOHIDDeviceRef) device;
34
35 @property (readonly) JSAction *selectedAction;
36 @property (readonly) NSMutableArray *joysticks;
37 @property (readonly) NSMutableArray *runningTargets;
38 @property (readwrite) BOOL frontWindowOnly;
39
40 @end