X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJInputHat.m;h=409ae0778832d4d12c4d3931f5fad7614aacf3ff;hp=b7d01610a4606c80de663c70f51ff77dbd992838;hb=4f449987e5296701d1da9963789c4817935ab6c8;hpb=35be7b3d4cc4b32ab3488f6585b7dbac3d42b5cc diff --git a/NJInputHat.m b/NJInputHat.m index b7d0161..409ae07 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 (int i = 0; i < 4; i++) { + BOOL active = activechildren[parsed * 4 + i]; + [self.children[i] setActive:active]; + [self.children[i] setMagnitude:active]; + } } @end