X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInput.h;h=db471217a65fa8ce2e384d68fb81a6ac40489aed;hp=d63be1bd6e2028d94402f843b0d16336316f22df;hb=561fa1774ce33b5a4a8112ba5802cc33a2ca819d;hpb=53afd7c25f4423020c805c3587875cdce99ba3f4 diff --git a/Classes/NJInput.h b/Classes/NJInput.h index d63be1b..db47121 100644 --- a/Classes/NJInput.h +++ b/Classes/NJInput.h @@ -8,17 +8,19 @@ #import "NJInputPathElement.h" -@interface NJInput : NSObject +@interface NJInput : NJInputPathElement + +#define NJINPUT_DID(name, index) [[NSString alloc] initWithFormat:@"%s %d", name, index] +#define NJINPUT_NAME(name, index) [[NSString alloc] initWithFormat:name, index] + +- (id)initWithName:(NSString *)name + eid:(NSString *)eid + element:(IOHIDElementRef)element + parent:(NJInputPathElement *)parent; @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, assign) float magnitude; -@property (readonly) NSString *uid; - -- (id)initWithName:(NSString *)newName base:(id )newBase; - (void)notifyEvent:(IOHIDValueRef)value; - (id)findSubInputForValue:(IOHIDValueRef)value;