Select single control point on right click

This commit is contained in:
smoogipoo
2019-11-13 17:28:18 +09:00
parent 76ab0ecd3c
commit c56503ee88
2 changed files with 16 additions and 9 deletions

View File

@ -16,6 +16,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Screens.Edit.Compose;
using osuTK;
using osuTK.Input;
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
{
@ -90,9 +91,9 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
public bool OnReleased(PlatformAction action) => action.ActionMethod == PlatformActionMethod.Delete;
private void selectPiece(int index)
private void selectPiece(int index, MouseButtonEvent e)
{
if (inputManager.CurrentState.Keyboard.ControlPressed)
if (e.Button == MouseButton.Left && inputManager.CurrentState.Keyboard.ControlPressed)
Pieces[index].IsSelected.Toggle();
else
{