mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 08:07:24 +08:00
Make backbutton handle global input last
This commit is contained in:
parent
38d39be678
commit
8220a51310
@ -7,6 +7,7 @@ using System.Linq;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Input;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Input.Bindings
|
||||
{
|
||||
@ -55,8 +56,11 @@ namespace osu.Game.Input.Bindings
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, GlobalAction.DecreaseScrollSpeed),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Make sure that the <see cref="OsuGame"/> handles global input first, and that <see cref="BackButton"/> handles global input last.
|
||||
/// </summary>
|
||||
protected override IEnumerable<Drawable> KeyBindingInputQueue =>
|
||||
handler == null ? base.KeyBindingInputQueue : base.KeyBindingInputQueue.Prepend(handler);
|
||||
(handler == null ? base.KeyBindingInputQueue : base.KeyBindingInputQueue.Prepend(handler)).OrderBy(d => d is BackButton);
|
||||
}
|
||||
|
||||
public enum GlobalAction
|
||||
|
Loading…
Reference in New Issue
Block a user