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 Nov 26, 2019
1 parent cee6281 commit afead0c
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 @@ -1063,7 +1063,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; //(controllerState.inputState.Touches & ovrTouch_ThumbUp) != 0;
controller->SetButtonState(controllerState.index, ControllerDelegate::BUTTON_OTHERS, 5, thumbRest, thumbRest);

// Only Oculus 6 DOF (Quest) has haptic feedback.
Expand Down

0 comments on commit afead0c

Please sign in to comment.