Skip to content

Commit

Permalink
Oh no, again
Browse files Browse the repository at this point in the history
  • Loading branch information
SDraw committed Jan 29, 2023
1 parent 6bc448d commit 783c343
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ml_lme/LeapInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ public override void UpdateInput()
if(m_interactLeft != (l_strength > Settings.HoldThreadhold))
{
m_interactLeft = (l_strength > Settings.HoldThreadhold);
m_inputManager.interactLeftUp |= m_interactLeft;
m_inputManager.interactLeftUp |= !m_interactLeft;
m_inputManager.interactLeftDown |= m_interactLeft;
}
m_inputManager.gripLeftValue = 1f - l_strength; // Inversed
if(m_gripLeft != (l_strength < Settings.ReleaseThreadhold))
{
m_gripLeft = (l_strength < Settings.ReleaseThreadhold);
m_inputManager.gripLeftUp |= m_gripLeft;
m_inputManager.gripLeftUp |= !m_gripLeft;
m_inputManager.gripLeftDown |= m_gripLeft;
}
}
Expand All @@ -150,14 +150,14 @@ public override void UpdateInput()
if(m_interactRight != (l_strength > Settings.HoldThreadhold))
{
m_interactRight = (l_strength > Settings.HoldThreadhold);
m_inputManager.interactRightUp |= m_interactRight;
m_inputManager.interactRightUp |= !m_interactRight;
m_inputManager.interactRightDown |= m_interactRight;
}
m_inputManager.gripRightValue = 1f - l_strength;
if(m_gripRight != (l_strength < Settings.HoldThreadhold))
{
m_gripRight = (l_strength < Settings.HoldThreadhold);
m_inputManager.gripRightUp |= m_gripRight;
m_inputManager.gripRightUp |= !m_gripRight;
m_inputManager.gripRightDown |= m_gripRight;
}
}
Expand Down

0 comments on commit 783c343

Please sign in to comment.