Skip to content

Commit

Permalink
Remove mouse input from mania touch controls
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Aug 30, 2024
1 parent a71bc3a commit 7f41d5f
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 7f41d5f

Please sign in to comment.