Skip to content

Commit 9bf7506

Browse files
committed
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.
1 parent c09efea commit 9bf7506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/SteamVR_Unity_Toolkit/Scripts/VRTK_ControllerEvents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private void EmitAlias(ButtonAlias type, bool touchDown, float buttonPressure, r
312312
{
313313
if (! touchDown)
314314
{
315-
OnAliasPointerSet(SetButtonEvent(ref buttonBool, true, buttonPressure));
315+
OnAliasPointerSet(SetButtonEvent(ref buttonBool, false, buttonPressure));
316316
}
317317
}
318318

0 commit comments

Comments
 (0)