Skip to content

Commit

Permalink
Revert "InputManager: Ignore the handtrigger for gestures."
Browse files Browse the repository at this point in the history
This reverts commit ea0ecef.
  • Loading branch information
CrossVR committed Jan 20, 2021
1 parent 735ccab commit 97da707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReviveXR/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,12 @@ void InputManager::OculusTouch::GetInputState(XrSession session, ovrControllerTy
inputState->HandTriggerNoDeadzone[i] = m_HandTrigger.GetAnalog(session, hand);

// Derive gestures from touch flags
if (!Runtime::Get().UseHack(Runtime::HACK_WMR_PROFILE) || inputState->HandTriggerNoDeadzone[i] > 0.5f)
if (inputState->HandTriggerNoDeadzone[i] > 0.5f)
{
if (!(touches & ovrTouch_RIndexTrigger))
touches |= ovrTouch_RIndexPointing;

if (!(touches & (ovrTouch_A | ovrTouch_B | ovrTouch_RThumb | ovrTouch_RThumbRest)))
if (!(touches & ~(ovrTouch_RIndexTrigger | ovrTouch_RIndexPointing)))
touches |= ovrTouch_RThumbUp;
}

Expand Down

0 comments on commit 97da707

Please sign in to comment.