mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 02:52:54 +08:00
Fix oversight in input blocking from osu! gameplay resume
This commit is contained in:
parent
9e962ce314
commit
62dec1cd78
@ -13,6 +13,7 @@ using osu.Game.Rulesets.Osu.UI.Cursor;
|
|||||||
using osu.Game.Rulesets.UI;
|
using osu.Game.Rulesets.UI;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
using TagLib.Flac;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.UI
|
namespace osu.Game.Rulesets.Osu.UI
|
||||||
{
|
{
|
||||||
@ -172,13 +173,14 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
Depth = float.MinValue;
|
Depth = float.MinValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
|
protected override void Update()
|
||||||
{
|
{
|
||||||
bool block = BlockNextPress;
|
base.Update();
|
||||||
BlockNextPress = false;
|
BlockNextPress = false;
|
||||||
return block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool OnPressed(KeyBindingPressEvent<OsuAction> e) => BlockNextPress;
|
||||||
|
|
||||||
public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
|
public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user