1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 11:33:22 +08:00

Merge pull request #29654 from smoogipoo/remove-mouse-from-mania-touch

Remove mouse input from mania touch controls
This commit is contained in:
Bartłomiej Dach 2024-08-30 14:11:47 +02:00 committed by GitHub
commit 672fe1becd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,12 +99,6 @@ namespace osu.Game.Rulesets.Mania.UI
return false; return false;
} }
protected override bool OnMouseDown(MouseDownEvent e)
{
Show();
return true;
}
protected override bool OnTouchDown(TouchDownEvent e) protected override bool OnTouchDown(TouchDownEvent e)
{ {
Show(); Show();
@ -172,17 +166,6 @@ namespace osu.Game.Rulesets.Mania.UI
updateButton(false); 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) private void updateButton(bool press)
{ {
if (press == isPressed) if (press == isPressed)