From 9bf7506fa65df13685abd91617c37b0d95a25a33 Mon Sep 17 00:00:00 2001 From: "Theston E. Fox" Date: Thu, 21 Jul 2016 18:17:07 +0100 Subject: [PATCH] fix(Controller): ensure touchpad press status is set correctly The Touchpad Press status was always being reported as pressed after it had been released because the `Pointer Set` alias was incorrectly setting it to true. This has now been fixed. --- Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs b/Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs index 38c15ffdd..3a83c3dac 100644 --- a/Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs +++ b/Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs @@ -312,7 +312,7 @@ private void EmitAlias(ButtonAlias type, bool touchDown, float buttonPressure, r { if (! touchDown) { - OnAliasPointerSet(SetButtonEvent(ref buttonBool, true, buttonPressure)); + OnAliasPointerSet(SetButtonEvent(ref buttonBool, false, buttonPressure)); } }