mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Merge pull request #2402 from FreezyLemon/fix-button-kb-input
Make buttons only accept input when expanded
This commit is contained in:
commit
af154e66a2
@ -1 +1 @@
|
||||
Subproject commit f155804739b8bf6e8e04cbdbadca88618d325a32
|
||||
Subproject commit 7e8788e601b62577e51197a29e24f56eeeac0286
|
@ -222,7 +222,7 @@ namespace osu.Game.Screens.Menu
|
||||
boxHoverLayer.FadeOut(800, Easing.OutExpo);
|
||||
}
|
||||
|
||||
public override bool HandleKeyboardInput => state != ButtonState.Exploded;
|
||||
public override bool HandleKeyboardInput => state == ButtonState.Expanded;
|
||||
public override bool HandleMouseInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
Reference in New Issue
Block a user