From ceeb62235c4bed8cb1caa2db215238d6566937b8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 2 Apr 2018 02:15:39 +0200 Subject: [PATCH] fix move button sometimes getting suck --- src/tabcontrollers/MoveCenterTabController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tabcontrollers/MoveCenterTabController.cpp b/src/tabcontrollers/MoveCenterTabController.cpp index a67447b..a1a218c 100644 --- a/src/tabcontrollers/MoveCenterTabController.cpp +++ b/src/tabcontrollers/MoveCenterTabController.cpp @@ -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;