mirror of
https://github.com/ppy/osu
synced 2025-02-07 22:01:59 +00:00
Remove manual handling of IsActive in RulesetInputManager
Now it is supported in framework
This commit is contained in:
parent
a9d1d163bb
commit
936bde28a3
@ -2,7 +2,6 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
@ -11,7 +10,6 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
using osu.Framework.Input.StateChanges;
|
|
||||||
using osu.Framework.Input.StateChanges.Events;
|
using osu.Framework.Input.StateChanges.Events;
|
||||||
using osu.Framework.Input.States;
|
using osu.Framework.Input.States;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
@ -102,17 +100,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
// to avoid allocation
|
|
||||||
private readonly List<IInput> emptyInputList = new List<IInput>();
|
|
||||||
|
|
||||||
protected override List<IInput> GetPendingInputs()
|
|
||||||
{
|
|
||||||
if (replayInputHandler?.IsActive == false)
|
|
||||||
return emptyInputList;
|
|
||||||
|
|
||||||
return base.GetPendingInputs();
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Setting application (disables etc.)
|
#region Setting application (disables etc.)
|
||||||
|
|
||||||
private Bindable<bool> mouseDisabled;
|
private Bindable<bool> mouseDisabled;
|
||||||
|
Loading…
Reference in New Issue
Block a user