2021-02-21 13:04:24 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MassiveKnob.Plugin
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required to be implemented for Action type InputAnalog. Receives an update when a knob's position changes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IMassiveKnobAnalogAction : IMassiveKnobActionInstance
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2021-02-24 08:05:11 +00:00
|
|
|
|
/// Called when an analog input's value changes.
|
2021-02-21 13:04:24 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="value">The new value. Range is 0 to 100.</param>
|
|
|
|
|
ValueTask AnalogChanged(byte value);
|
|
|
|
|
}
|
|
|
|
|
}
|