Skip to content

Commit 0269d6c

Browse files
committed
InputManager: Apply a square root function on the hand trigger.
This ensures less force is needed to grab while still keeping most of the range.
1 parent 4303b38 commit 0269d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Revive/InputManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ bool InputManager::OculusTouch::GetInputState(ovrSession session, ovrInputState*
504504

505505
OVR::Vector2f thumbstick = GetAnalog(m_Thumbstick) - m_Thumbstick_Center;
506506
inputState->IndexTrigger[hand] = GetAnalog(m_IndexTrigger).x;
507-
inputState->HandTrigger[hand] = GetAnalog(m_HandTrigger).x;
507+
inputState->HandTrigger[hand] = sqrt(GetAnalog(m_HandTrigger).x);
508508
inputState->Thumbstick[hand] = ApplyDeadzone(thumbstick, deadzone, deadzone / 2.0f);
509509
inputState->ThumbstickNoDeadzone[hand] = thumbstick;
510510

0 commit comments

Comments
 (0)