Fix osu! logo handling non-left mouse buttons

This commit is contained in:
Dean Herbert 2018-07-12 12:15:22 +09:00
parent 882a6afecc
commit 5df2df9b3a
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@
using osu.Game.Graphics.Containers;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Input;
namespace osu.Game.Screens.Menu
{
@ -345,12 +346,16 @@ protected override void Update()
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
if (args.Button != MouseButton.Left) return false;
logoBounceContainer.ScaleTo(0.9f, 1000, Easing.Out);
return true;
}
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
if (args.Button != MouseButton.Left) return false;
logoBounceContainer.ScaleTo(1f, 500, Easing.OutElastic);
return true;
}