Remove smoke from key overlay

This commit is contained in:
Alden Wu 2022-09-18 19:08:01 -07:00
parent 0138663bdc
commit 6852577dad
2 changed files with 16 additions and 1 deletions

View File

@ -10,6 +10,7 @@
using osu.Framework.Input.Events;
using osu.Framework.Input.StateChanges.Events;
using osu.Game.Rulesets.UI;
using osu.Game.Screens.Play;
namespace osu.Game.Rulesets.Osu
{
@ -56,6 +57,20 @@ protected override bool HandleMouseTouchStateChange(TouchStateChangeEvent e)
return base.HandleMouseTouchStateChange(e);
}
public override void Attach(KeyCounterDisplay keyCounter)
{
var receptor = new ActionReceptor(keyCounter);
KeyBindingContainer.Add(receptor);
keyCounter.SetReceptor(receptor);
keyCounter.AddRange(new[]
{
new KeyCounterAction<OsuAction>(OsuAction.LeftButton),
new KeyCounterAction<OsuAction>(OsuAction.RightButton),
});
}
private class OsuKeyBindingContainer : RulesetKeyBindingContainer
{
public bool AllowUserPresses = true;

View File

@ -154,7 +154,7 @@ protected override bool HandleMouseTouchStateChange(TouchStateChangeEvent e)
#region Key Counter Attachment
public void Attach(KeyCounterDisplay keyCounter)
public virtual void Attach(KeyCounterDisplay keyCounter)
{
var receptor = new ActionReceptor(keyCounter);