fix spaces and touch duration

This commit is contained in:
SamGondelman 2016-06-06 15:20:10 -07:00
parent e7743cd8e2
commit cea0d74c35
2 changed files with 4 additions and 4 deletions

View file

@ -221,12 +221,12 @@ void OculusControllerManager::TouchDevice::update(float deltaTime, const control
{
Locker locker(_lock);
if (_leftHapticDuration > 0.0f) {
_leftHapticDuration -= deltaTime;
_leftHapticDuration -= deltaTime * 1000.0f; // milliseconds
} else {
stopHapticPulse(true);
}
if (_rightHapticDuration > 0.0f) {
_rightHapticDuration -= deltaTime;
_rightHapticDuration -= deltaTime * 1000.0f; // milliseconds
} else {
stopHapticPulse(false);
}