Support HandleKeyboardInput, HandleMouseInput, CanReceiveKeyboardInput, CanReceiveMouseInput properties

This commit is contained in:
TocoToucan
2018-01-07 23:40:00 +03:00
parent 8a4ab6c03d
commit ae032cbf23
19 changed files with 48 additions and 20 deletions

View File

@ -222,7 +222,9 @@ namespace osu.Game.Screens.Menu
boxHoverLayer.FadeOut(800, Easing.OutExpo);
}
public override bool HandleInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
public override bool HandleKeyboardInput => handleInput;
public override bool HandleMouseInput => handleInput;
private bool handleInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
protected override void Update()
{