Skip to content

Commit

Permalink
fix(ControllerEvents): ensure touchpad axis reset to zero on untouch
Browse files Browse the repository at this point in the history
The touchpad axis needs to be reset to zero when the touchpad is
untouched otherwise it will remember the previous touchpad axis state.
  • Loading branch information
thestonefox committed Feb 21, 2017
1 parent 9e9f085 commit de2e410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/VRTK/Scripts/Interactions/VRTK_ControllerEvents.cs
Expand Up @@ -1174,6 +1174,7 @@ protected virtual void Update()
if (!touchpadTouched || Vector2ShallowEquals(touchpadAxis, currentTouchpadAxis))
{
touchpadAxisChanged = false;
touchpadAxis = Vector2.zero;
}
else
{
Expand Down

0 comments on commit de2e410

Please sign in to comment.