X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJInputHat.m;h=e0e127fec646b6d4b15e51b144cede49ede7c0b2;hp=b7d01610a4606c80de663c70f51ff77dbd992838;hb=5d47b8ad7e805212b250c86e8e18758bc3662e54;hpb=f864d363128de19fc6591b77ae9226b34166d715 diff --git a/NJInputHat.m b/NJInputHat.m index b7d0161..e0e127f 100644 --- a/NJInputHat.m +++ b/NJInputHat.m @@ -89,8 +89,11 @@ static BOOL active_fourway[20] = { size++; } BOOL *activechildren = (size == 8) ? active_eightway : active_fourway; - for (int i = 0; i < 4; i++) - [self.children[i] setActive:activechildren[parsed * 4 + i]]; + for (unsigned i = 0; i < 4; i++) { + BOOL active = activechildren[parsed * 4 + i]; + [self.children[i] setActive:active]; + [self.children[i] setMagnitude:active]; + } } @end