mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 09:35:07 +02:00
reset vive grip buttons to 0 if not pressed
This commit is contained in:
parent
ae9b8696d4
commit
df9fd6c7fc
1 changed files with 4 additions and 0 deletions
|
@ -363,6 +363,10 @@ void ViveControllerManager::InputDevice::handleButtonEvent(float deltaTime, uint
|
||||||
} else if (button == vr::k_EButton_SteamVR_Touchpad) {
|
} else if (button == vr::k_EButton_SteamVR_Touchpad) {
|
||||||
_buttonPressedMap.insert(isLeftHand ? LS : RS);
|
_buttonPressedMap.insert(isLeftHand ? LS : RS);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (button == vr::k_EButton_Grip) {
|
||||||
|
_axisStateMap[isLeftHand ? LEFT_GRIP : RIGHT_GRIP] = 0.0f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (touched) {
|
if (touched) {
|
||||||
|
|
Loading…
Reference in a new issue