mirror of https://github.com/ppy/osu
Remove mouse input from mania touch controls
This commit is contained in:
parent
a71bc3a24a
commit
7f41d5f4e7
|
@ -99,12 +99,6 @@ protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
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 @@ protected override void OnTouchUp(TouchUpEvent e)
|
||||||
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