projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix space after link.
[enjoyable.git]
/
NJInputHat.m
diff --git
a/NJInputHat.m
b/NJInputHat.m
index
b7d0161
..
e0e127f
100644
(file)
--- a/
NJInputHat.m
+++ b/
NJInputHat.m
@@
-89,8
+89,11
@@
static BOOL active_fourway[20] = {
size++;
}
BOOL *activechildren = (size == 8) ? active_eightway : active_fourway;
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
}
@end