X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJInputButton.m;h=0c3b0ce32de0105413d0d1c4e68c86be853e62b7;hp=c5002768a34c4da81f1d02073d7328a72745d23b;hb=a1ef82131c21d22e995b2d1810c16f47c6c13c39;hpb=f864d363128de19fc6591b77ae9226b34166d715 diff --git a/NJInputButton.m b/NJInputButton.m index c500276..0c3b0ce 100644 --- a/NJInputButton.m +++ b/NJInputButton.m @@ -28,6 +28,7 @@ - (void)notifyEvent:(IOHIDValueRef)value { self.active = IOHIDValueGetIntegerValue(value) == _max; + self.magnitude = IOHIDValueGetIntegerValue(value) / (float)_max; } @end