1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 16:52:54 +08:00

Fix oversight in input blocking from osu! gameplay resume

This commit is contained in:
Salman Ahmed 2024-08-19 14:14:39 +09:00
parent 9e962ce314
commit 62dec1cd78

View File

@ -13,6 +13,7 @@ using osu.Game.Rulesets.Osu.UI.Cursor;
using osu.Game.Rulesets.UI;
using osu.Game.Screens.Play;
using osuTK.Graphics;
using TagLib.Flac;
namespace osu.Game.Rulesets.Osu.UI
{
@ -172,13 +173,14 @@ namespace osu.Game.Rulesets.Osu.UI
Depth = float.MinValue;
}
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
protected override void Update()
{
bool block = BlockNextPress;
base.Update();
BlockNextPress = false;
return block;
}
public bool OnPressed(KeyBindingPressEvent<OsuAction> e) => BlockNextPress;
public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
{
}