projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Big rename part 1: 'action' to 'input'.
[enjoyable.git]
/
TargetMouseScroll.m
diff --git
a/TargetMouseScroll.m
b/TargetMouseScroll.m
index
6595628
..
ac3b852
100644
(file)
--- a/
TargetMouseScroll.m
+++ b/
TargetMouseScroll.m
@@
-37,13
+37,13
@@
}
}
}
}
-- (BOOL)update:(
Joystick
Controller *)jc {
+- (BOOL)update:(
NJInput
Controller *)jc {
if (fabsf(self.magnitude) < 0.01f) {
sign = 0;
return NO; // dead zone
}
if (fabsf(self.magnitude) < 0.01f) {
sign = 0;
return NO; // dead zone
}
- // If the
action
crossed over High/Low, this target is done.
+ // If the
input
crossed over High/Low, this target is done.
if (!sign)
sign = self.magnitude < 0 ? -1 : 1;
else if (sign / self.magnitude < 0) {
if (!sign)
sign = self.magnitude < 0 ? -1 : 1;
else if (sign / self.magnitude < 0) {