X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInput.m;h=78376e6dfe18472d6a170929f5a6215c9aaddb01;hp=a279322583d4a19e9fedb83513b2b30da138e0cc;hb=79b05c3cf1c75bc4f7078acde43aaf4215c6408a;hpb=53afd7c25f4423020c805c3587875cdce99ba3f4 diff --git a/Classes/NJInput.m b/Classes/NJInput.m index a279322..78376e6 100644 --- a/Classes/NJInput.m +++ b/Classes/NJInput.m @@ -9,10 +9,12 @@ @implementation NJInput -- (id)initWithName:(NSString *)newName base:(id )newBase { - if ((self = [super init])) { - self.name = newName; - self.base = newBase; +- (id)initWithName:(NSString *)name + did:(NSString *)did + cookie:(IOHIDElementCookie)cookie + base:(NJInputPathElement *)base { + if ((self = [super initWithName:name did:did base:base])) { + self.cookie = cookie; } return self; } @@ -21,10 +23,6 @@ return nil; } -- (NSString *)uid { - return [NSString stringWithFormat:@"%@~%@", _base.uid, _name]; -} - - (void)notifyEvent:(IOHIDValueRef)value { [self doesNotRecognizeSelector:_cmd]; }