X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJInput.h;fp=NJInput.h;h=e2c8404248fbb04383fc4194333872a29350ddab;hp=0000000000000000000000000000000000000000;hb=f864d363128de19fc6591b77ae9226b34166d715;hpb=f563321aec9e13b8479ab3b890a9179f095a8b17 diff --git a/NJInput.h b/NJInput.h new file mode 100644 index 0000000..e2c8404 --- /dev/null +++ b/NJInput.h @@ -0,0 +1,26 @@ +// +// NJInput.h +// Enjoy +// +// Created by Sam McCall on 4/05/09. +// Copyright 2009 University of Otago. All rights reserved. +// + +#import "NJInputPathElement.h" + +@interface NJInput : NSObject + +@property (nonatomic, assign) IOHIDElementCookie cookie; +@property (nonatomic, copy) NSArray *children; +@property (nonatomic, weak) id base; +@property (nonatomic, copy) NSString *name; +@property (nonatomic, assign) BOOL active; +@property (nonatomic, readonly) float magnitude; +@property (readonly) NSString *uid; + +- (id)initWithName:(NSString *)newName base:(id )newBase; + +- (void)notifyEvent:(IOHIDValueRef)value; +- (id)findSubInputForValue:(IOHIDValueRef)value; + +@end