From 583d66b496e4a30ae3e7c7e8e5fe37140d4f384a Mon Sep 17 00:00:00 2001 From: yaw-man Date: Sat, 13 Aug 2022 12:44:01 -0300 Subject: [PATCH] Start to add button inputs --- src/yaw-tab/DistrhoPluginInfo.h | 1 + src/yaw-tab/dsp.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/yaw-tab/DistrhoPluginInfo.h b/src/yaw-tab/DistrhoPluginInfo.h index 02b0c46..38114bc 100644 --- a/src/yaw-tab/DistrhoPluginInfo.h +++ b/src/yaw-tab/DistrhoPluginInfo.h @@ -23,6 +23,7 @@ enum Parameters { kParameterTabletY, kParameterTabletZ, kParameterTabletPressure, + kParameterTabletButtons, kParameterTime, kParameterCount }; diff --git a/src/yaw-tab/dsp.cpp b/src/yaw-tab/dsp.cpp index 38426bc..bc7fac1 100644 --- a/src/yaw-tab/dsp.cpp +++ b/src/yaw-tab/dsp.cpp @@ -49,6 +49,11 @@ protected: parameter.name = "p"; parameter.symbol = "p"; break; + case kParameterTabletButtons: + parameter.name = "Buttons"; + parameter.symbol = "b"; + parameter.hints = kParameterIsAutomable | kParameterIsInteger; + break; case kParameterTime: parameter.name = "t"; parameter.symbol = "t"; @@ -67,7 +72,6 @@ protected: float getParameterValue(uint32_t index) const override { return fParameters[index]; - } void setParameterValue(uint32_t idx, float val) override @@ -84,6 +88,8 @@ protected: case kParameterTabletPressure: volume = val; break; + case kParameterTabletButtons: + break; } }