// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-
@class JoystickController;
@class TargetController;
@class ConfigsController;
// Created by Sam McCall on 4/05/09.
//
+#import "ApplicationController.h"
+
+#import "Config.h"
+#import "ConfigsController.h"
+#import "JoystickController.h"
+#import "TargetController.h"
+
@implementation ApplicationController {
BOOL active;
}
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Foundation/Foundation.h>
-
@class Target;
@class JSAction;
#import "Config.h"
+#import "JSAction.h"
+
@implementation Config {
NSMutableDictionary *entries;
}
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-
@class Config;
@class TargetController;
// Created by Sam McCall on 4/05/09.
//
+#import "ConfigsController.h"
+
+#import "ApplicationController.h"
+#import "Config.h"
+#import "ConfigsController.h"
+#import "Target.h"
+#import "TargetController.h"
+
@implementation ConfigsController {
NSMutableArray *configs;
Config *manualConfig;
#endif
#import <IOKit/hid/IOHIDLib.h>
-
-#import "ApplicationController.h"
-#import "Config.h"
-#import "ConfigsController.h"
-#import "Joystick.h"
-#import "JoystickController.h"
-#import "JSAction.h"
-#import "JSActionAnalog.h"
-#import "JSActionButton.h"
-#import "JSActionHat.h"
-#import "KeyInputTextView.h"
-#import "Target.h"
-#import "TargetConfig.h"
-#import "TargetController.h"
-#import "TargetKeyboard.h"
-#import "TargetMouseMove.h"
-#import "TargetMouseBtn.h"
-#import "TargetMouseScroll.h"
-#import "TargetToggleMouseScope.h"
\ No newline at end of file
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Foundation/Foundation.h>
-#import <IOKit/hid/IOHIDBase.h>
-
@interface JSAction : NSObject
@property (assign) void *cookie;
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-
#import "JSAction.h"
@interface JSActionButton : JSAction
// Created by Sam McCall on 5/05/09.
//
+#import "JSActionButton.h"
+
@implementation JSActionButton {
BOOL active;
}
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-
#import "JSAction.h"
@interface JSActionHat : JSAction
// Created by Sam McCall on 5/05/09.
//
+#import "JSActionHat.h"
+
static BOOL active_eightway[36] = {
NO, NO, NO, NO , // center
YES, NO, NO, NO , // N
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Foundation/Foundation.h>
-#import <IOKit/hid/IOHIDBase.h>
-
@class JSAction;
@interface Joystick : NSObject
#import "Joystick.h"
+#import "JSAction.h"
+#import "JSActionAnalog.h"
+#import "JSActionButton.h"
+#import "JSActionHat.h"
+
static NSArray *ActionsForElement(IOHIDDeviceRef device, id base) {
CFArrayRef elements = IOHIDDeviceCopyMatchingElements(device, NULL, kIOHIDOptionsTypeNone);
NSMutableArray *children = [NSMutableArray arrayWithCapacity:CFArrayGetCount(elements)];
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-#import <IOKit/hid/IOHIDLib.h>
-
@class Joystick;
@class JSAction;
@class ConfigsController;
#import "JoystickController.h"
+#import "ApplicationController.h"
+#import "Config.h"
+#import "ConfigsController.h"
+#import "Joystick.h"
+#import "JSAction.h"
+#import "Target.h"
+#import "TargetController.h"
+
@implementation JoystickController {
IOHIDManagerRef hidManager;
BOOL programmaticallySelecting;
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
+@class TargetController;
@interface KeyInputTextView : NSTextField {
IBOutlet NSWindow *window;
#import "KeyInputTextView.h"
+#import "TargetController.h"
+
@implementation KeyInputTextView {
int vk;
BOOL enabled;
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
+@class JoystickController;
@interface Target : NSObject
// Created by Sam McCall on 5/05/09.
//
+#import "Target.h"
+
+#import "TargetKeyboard.h"
+#import "TargetConfig.h"
+#import "TargetMouseMove.h"
+#import "TargetMouseBtn.h"
+#import "TargetMouseScroll.h"
+#import "TargetToggleMouseScope.h"
+
@implementation Target {
BOOL running;
}
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-
#import "Target.h"
@class Config;
#import "TargetConfig.h"
+#import "ApplicationController.h"
+#import "Config.h"
+#import "ConfigsController.h"
+
@implementation TargetConfig
- (NSString *)stringify {
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
@class KeyInputTextView;
@class ConfigsController;
@class JoystickController;
@class Target;
-
@class TargetMouseMove;
@interface TargetController : NSObject {
// Created by Sam McCall on 5/05/09.
//
+#import "TargetController.h"
+
+#import "ConfigsController.h"
+#import "Config.h"
+#import "JSAction.h"
+#import "JoystickController.h"
+#import "KeyInputTextView.h"
+#import "TargetConfig.h"
+#import "TargetController.h"
+#import "TargetKeyboard.h"
+#import "TargetMouseBtn.h"
+#import "TargetMouseMove.h"
+#import "TargetMouseScroll.h"
+#import "TargetToggleMouseScope.h"
+
@implementation TargetController
-(void) keyChanged {
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-@class Target;
+#import "Target.h"
@interface TargetKeyboard : Target {
CGKeyCode vk;
// Created by Sam McCall on 5/05/09.
//
+#import "TargetKeyboard.h"
+
@implementation TargetKeyboard
@synthesize vk, descr;
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
#import "Target.h"
@interface TargetMouseMove : Target {
#import "TargetMouseMove.h"
+#import "JoystickController.h"
+
@implementation TargetMouseMove
-(BOOL) isContinuous {
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
+#import "Target.h"
@interface TargetMouseScroll : Target {
int howMuch;
#import "TargetToggleMouseScope.h"
+#import "ApplicationController.h"
+#import "JoystickController.h"
+
@implementation TargetToggleMouseScope
-(NSString*) stringify {