From c2ab06e02f57cbae6e09a3b626d63e92e67304a6 Mon Sep 17 00:00:00 2001 From: Daosheng Mu Date: Tue, 26 Nov 2019 10:30:31 -0800 Subject: [PATCH] Making Quest thumbRest always be false. --- app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp b/app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp index dabce76006..078292b03e 100644 --- a/app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp +++ b/app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp @@ -1066,7 +1066,8 @@ struct DeviceDelegateOculusVR::State { VRB_WARN("Undefined hand type in DeviceDelegateOculusVR."); } - const bool thumbRest = (controllerState.inputState.Touches & ovrTouch_ThumbUp) != 0; + // This is always false in Oculus Browser. + const bool thumbRest = false; controller->SetButtonState(controllerState.index, ControllerDelegate::BUTTON_OTHERS, 5, thumbRest, thumbRest); } else { triggerPressed = (controllerState.inputState.Buttons & ovrButton_A) != 0;