1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:03:10 +08:00

Merge pull request #762 from peppy/player-fixes

Player fixes
This commit is contained in:
Dan Balasescu 2017-05-16 19:20:33 +09:00 committed by GitHub
commit d1c198d9bf
2 changed files with 14 additions and 0 deletions

View File

@ -216,6 +216,11 @@ namespace osu.Game.Graphics.UserInterface
}); });
} }
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
return true;
}
protected override bool OnClick(InputState state) protected override bool OnClick(InputState state)
{ {
var flash = new Box var flash = new Box

View File

@ -224,6 +224,15 @@ namespace osu.Game.Screens.Play
}; };
} }
protected override void Update()
{
// eagerly pause when we lose window focus (if we are locally playing).
if (!Game.IsActive && !HitRenderer.HasReplayLoaded)
Pause();
base.Update();
}
private void initializeSkipButton() private void initializeSkipButton()
{ {
const double skip_required_cutoff = 3000; const double skip_required_cutoff = 3000;