fix move button sometimes getting suck

This commit is contained in:
Robin Appelman
2018-04-02 02:15:39 +02:00
parent 64bbe88206
commit ceeb62235c
@@ -250,6 +250,10 @@ vr::ETrackedControllerRole MoveCenterTabController::getMoveShortcutHand() {
if (!leftPressed && m_moveShortcutLeftPressed) {
activeHand = rightPressed ? vr::TrackedControllerRole_RightHand : vr::TrackedControllerRole_Invalid;
}
if (!leftPressed && !rightPressed) {
activeHand = vr::TrackedControllerRole_Invalid;
}
m_activeMoveController = activeHand;
m_moveShortcutRightPressed = rightPressed;