X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInput.h;h=db471217a65fa8ce2e384d68fb81a6ac40489aed;hp=380e85858ad4a67cb182d75afecb119c9e2e4a25;hb=561fa1774ce33b5a4a8112ba5802cc33a2ca819d;hpb=0064c1fbff36795885a9724081af2a17d83c20a3 diff --git a/Classes/NJInput.h b/Classes/NJInput.h index 380e858..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;