Skip to content

Commit

Permalink
Making Quest thumbRest always be false.
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu committed Dec 12, 2019
1 parent 57cc5c7 commit 801cce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 801cce3

Please sign in to comment.