Skip to content

Commit

Permalink
Remove unneeded cursor hiding when Touch is used
Browse files Browse the repository at this point in the history
It's already hidden automatically by `MenuCursorContainer`
  • Loading branch information
LumpBloom7 committed Jul 16, 2022
1 parent e110eb4 commit 4c36eca
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions osu.Game.Rulesets.Sentakki/UI/SentakkiCursorContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Input.Events;
using osu.Game.Rulesets.UI;

namespace osu.Game.Rulesets.Sentakki.UI
Expand All @@ -26,19 +25,5 @@ private void load(TextureStore textures)
if (cursorSprite != null)
cursorSprite.Texture = cursorTexture;
}

protected override bool Handle(UIEvent e)
{
switch (e)
{
case MouseEvent _:
Show();
break;
case TouchEvent _:
Hide();
break;
}
return base.Handle(e);
}
}
}

0 comments on commit 4c36eca

Please sign in to comment.