Esempio n. 1
0
    public override void OnSelectableMouseDown()
    {
        base.OnSelectableMouseDown();

        if (ShortcutInput.modifierInput && Input.GetMouseButtonDown(1))
        {
            BPM previousBpm = SongObjectHelper.GetPreviousNonInclusive(bpm.song.bpms, bpm.tick);
            if (previousBpm != null && previousBpm.anchor == null)
            {
                draggingInitialBpm = (BPM)previousBpm.Clone();
            }
        }
    }
    public override void OnSelectableMouseDown()
    {
        base.OnSelectableMouseDown();

        if (MSE.Input.KeyboardDevice.ctrlKeyBeingPressed && Input.GetMouseButtonDown(1))
        {
            hasPushed = false;

            // This is to allow dragging to be used while the BPM placement tool is active
            BPM previousBpm = SongObjectHelper.GetPreviousNonInclusive(bpm.song.bpms, bpm.tick);
            if (previousBpm != null && previousBpm.anchor == null)
            {
                draggingInitialBpm = (BPM)previousBpm.Clone();
            }
        }
    }