mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 15:03:21 +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:
commit
672fe1becd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user