projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore helpindex and Emacs temporary files.
[enjoyable.git]
/
NJInputButton.m
diff --git
a/NJInputButton.m
b/NJInputButton.m
index
c500276
..
0c3b0ce
100644
(file)
--- a/
NJInputButton.m
+++ b/
NJInputButton.m
@@
-28,6
+28,7
@@
- (void)notifyEvent:(IOHIDValueRef)value {
self.active = IOHIDValueGetIntegerValue(value) == _max;
- (void)notifyEvent:(IOHIDValueRef)value {
self.active = IOHIDValueGetIntegerValue(value) == _max;
+ self.magnitude = IOHIDValueGetIntegerValue(value) / (float)_max;
}
@end
}
@end