X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Joystick.m;h=3f218184fe8810fd8af83cd939f644d4ae97f4b1;hp=861ab8d8bc1c44459d22f6515c077cb22aa21b51;hb=25dd74a4a34f4ba7ec797360bd8f92cbd7bc758e;hpb=3f6df7a954fb74bcebf6fc6c0e60821843b0f31b diff --git a/Joystick.m b/Joystick.m index 861ab8d..3f21818 100644 --- a/Joystick.m +++ b/Joystick.m @@ -78,12 +78,11 @@ static NSArray *ActionsForElement(IOHIDDeviceRef device, id base) { } - (id)base { - // FIXME(jfw): This is a hack because actions get joysticks as their base. return nil; } -- (NSString *)stringify { - return [[NSString alloc] initWithFormat: @"%d~%d~%d", vendorId, productId, index]; +- (NSString *)uid { + return [NSString stringWithFormat: @"%d:%d:%d", vendorId, productId, index]; } - (JSAction *)findActionByCookie:(void *)cookie {