Files
tooll3--t3/Editor/Gui/Interaction/Midi/CommandProcessing/ModeButton.cs
T
2026-07-13 13:13:17 +08:00

24 lines
683 B
C#

namespace T3.Editor.Gui.Interaction.Midi.CommandProcessing;
public sealed class ModeButton
{
/// <summary>
/// While holding switches the device into an input mode
/// </summary>
public ModeButton(ButtonRange buttonRange, CompatibleMidiDevice.InputModes mode, Interactions interaction= Interactions.ActiveWhileHolding)
{
ButtonRange = buttonRange;
Mode = mode;
Interaction = interaction;
}
public enum Interactions
{
ActiveWhileHolding,
ToggleOnPress,
}
public Interactions Interaction;
public ButtonRange ButtonRange;
public CompatibleMidiDevice.InputModes Mode;
}