fix move button sometimes getting suck
This commit is contained in:
@@ -251,6 +251,10 @@ vr::ETrackedControllerRole MoveCenterTabController::getMoveShortcutHand() {
|
|||||||
activeHand = rightPressed ? vr::TrackedControllerRole_RightHand : vr::TrackedControllerRole_Invalid;
|
activeHand = rightPressed ? vr::TrackedControllerRole_RightHand : vr::TrackedControllerRole_Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!leftPressed && !rightPressed) {
|
||||||
|
activeHand = vr::TrackedControllerRole_Invalid;
|
||||||
|
}
|
||||||
|
|
||||||
m_activeMoveController = activeHand;
|
m_activeMoveController = activeHand;
|
||||||
m_moveShortcutRightPressed = rightPressed;
|
m_moveShortcutRightPressed = rightPressed;
|
||||||
m_moveShortcutLeftPressed = leftPressed;
|
m_moveShortcutLeftPressed = leftPressed;
|
||||||
|
|||||||
Reference in New Issue
Block a user