Skip to content

Commit

Permalink
fix(Controller): ensure touchpad press status is set correctly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thestonefox committed Jul 21, 2016
1 parent c09efea commit 9bf7506
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

1 comment on commit 9bf7506

@cordonezVL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great!

Please sign in to comment.