Skip to content

Commit

Permalink
Merge pull request ExtendRealityLtd#1536 from thestonefox/fix/interac…
Browse files Browse the repository at this point in the history
…t-override-buttons

fix(Interaction): ensure override buttons are reset correctly - fixes ExtendRealityLtd#1535
  • Loading branch information
thestonefox authored Oct 4, 2017
2 parents 236051c + 5c21268 commit e16de5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/VRTK/Scripts/Interactions/VRTK_InteractGrab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ protected virtual void ControllerTouchInteractableObject(object sender, ObjectIn
{
savedGrabButton = subscribedGrabButton;
grabButton = touchedObjectScript.grabOverrideButton;
ManageGrabListener(true);
}
}
}
Expand All @@ -275,6 +276,7 @@ protected virtual void ControllerUntouchInteractableObject(object sender, Object
{
grabButton = savedGrabButton;
savedGrabButton = VRTK_ControllerEvents.ButtonAlias.Undefined;
ManageGrabListener(true);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Assets/VRTK/Scripts/Interactions/VRTK_InteractUse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ protected virtual void ControllerTouchInteractableObject(object sender, ObjectIn
{
savedUseButton = subscribedUseButton;
useButton = touchedObjectScript.useOverrideButton;
ManageUseListener(true);
}
}
}
Expand All @@ -236,6 +237,7 @@ protected virtual void ControllerUntouchInteractableObject(object sender, Object
{
useButton = savedUseButton;
savedUseButton = VRTK_ControllerEvents.ButtonAlias.Undefined;
ManageUseListener(true);
}
}
}
Expand Down

0 comments on commit e16de5a

Please sign in to comment.