Start to add button inputs

This commit is contained in:
yaw-man 2022-08-13 12:44:01 -03:00
parent 65e3a0f639
commit 583d66b496
2 changed files with 8 additions and 1 deletions

View File

@ -23,6 +23,7 @@ enum Parameters {
kParameterTabletY,
kParameterTabletZ,
kParameterTabletPressure,
kParameterTabletButtons,
kParameterTime,
kParameterCount
};

View File

@ -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;
}
}