X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSActionAnalog.m;h=ae347fa9ad85774e7ac9ad41ba8ff109117df3d4;hp=06552a967509f721cd0228fc6f977fd189c36ff1;hb=dd1f684886c2809133356bb9b335a35293e8849e;hpb=51d43664909060e85c943c4d63cc3cff307ceb1d diff --git a/JSActionAnalog.m b/JSActionAnalog.m index 06552a9..ae347fa 100644 --- a/JSActionAnalog.m +++ b/JSActionAnalog.m @@ -18,12 +18,12 @@ - (id)initWithIndex:(int)newIndex offset:(float)offset_ scale:(float)scale_ { if ((self = [super init])) { - self.children = @[[[SubAction alloc] initWithIndex:0 name:@"Low" base:self], - [[SubAction alloc] initWithIndex:1 name:@"High" base:self]]; + self.children = @[[[JSAction alloc] initWithName:@"Low" base:self], + [[JSAction alloc] initWithName:@"High" base:self]]; self.index = newIndex; self.offset = offset_; self.scale = scale_; - self.name = [[NSString alloc] initWithFormat: @"Axis %d", self.index + 1]; + self.name = [[NSString alloc] initWithFormat: @"Axis %d", self.index]; } return self; }