Only allow hit placement when left mouse is clicked

This commit is contained in:
Bartłomiej Dach 2023-04-04 18:40:10 +02:00
parent e25ddbf53c
commit 7d9327f3e2
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.Rulesets.Taiko.UI;
using osuTK;
using osuTK.Input;
namespace osu.Game.Rulesets.Taiko.Edit.Blueprints
{
@ -32,6 +33,9 @@ protected override void LoadComplete()
protected override bool OnMouseDown(MouseDownEvent e)
{
if (e.Button != MouseButton.Left)
return false;
EndPlacement(true);
return true;
}