Skip to content

Commit

Permalink
Merge pull request #29654 from smoogipoo/remove-mouse-from-mania-touch
Browse files Browse the repository at this point in the history
Remove mouse input from mania touch controls
  • Loading branch information
bdach committed Aug 30, 2024
2 parents d3f31fa + 7f41d5f commit 672fe1b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions osu.Game.Rulesets.Mania/UI/ManiaTouchInputArea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ protected override bool OnKeyDown(KeyDownEvent e)
return false;
}

protected override bool OnMouseDown(MouseDownEvent e)
{
Show();
return true;
}

protected override bool OnTouchDown(TouchDownEvent e)
{
Show();
Expand Down Expand Up @@ -172,17 +166,6 @@ protected override void OnTouchUp(TouchUpEvent e)
updateButton(false);
}

protected override bool OnMouseDown(MouseDownEvent e)
{
updateButton(true);
return false; // handled by parent container to show overlay.
}

protected override void OnMouseUp(MouseUpEvent e)
{
updateButton(false);
}

private void updateButton(bool press)
{
if (press == isPressed)
Expand Down

0 comments on commit 672fe1b

Please sign in to comment.