X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSActionHat.m;fp=JSActionHat.m;h=41d372870a33a519497adc4fdbde75e1b8bf57cd;hp=d948cc7ac42493be52e71765950de04c34c17714;hb=3f6df7a954fb74bcebf6fc6c0e60821843b0f31b;hpb=3a40cba25b9bb38887fe4809277d4c0f73462d12 diff --git a/JSActionHat.m b/JSActionHat.m index d948cc7..41d3728 100644 --- a/JSActionHat.m +++ b/JSActionHat.m @@ -29,10 +29,10 @@ static BOOL active_fourway[20] = { - (id)init { if ((self = [super init])) { - self.children = @[[[SubAction alloc] initWithIndex: 0 name: @"Up" base: self], - [[SubAction alloc] initWithIndex: 1 name: @"Down" base: self], - [[SubAction alloc] initWithIndex: 2 name: @"Left" base: self], - [[SubAction alloc] initWithIndex: 3 name: @"Right" base: self]]; + self.children = @[[[JSAction alloc] initWithName:@"Up" base: self], + [[JSAction alloc] initWithName:@"Down" base: self], + [[JSAction alloc] initWithName:@"Left" base: self], + [[JSAction alloc] initWithName:@"Right" base: self]]; // TODO(jfw): Should have an indexed name, like everything else. self.name = @"Hat switch"; }