25 Integer(l10n::String newName, int32_t newP = 0) : PatchedParam(newP),
IntegerContinuous(newName) {}
26 Integer(l10n::String newName, l10n::String
title, int32_t newP = 0)
29 void drawValue()
override { display->setTextAsNumber(this->getValue(), shouldDrawDotOnName()); }
33 ParamDescriptor getLearningThing() final {
return PatchedParam::getLearningThing(); }
34 [[nodiscard]] int32_t getMaxValue()
const override {
return PatchedParam::getMaxValue(); }
35 [[nodiscard]] int32_t getMinValue()
const override {
return PatchedParam::getMinValue(); }
37 return PatchedParam::shouldBlinkPatchingSourceShortcut(s, colour);
40 uint8_t shouldDrawDotOnName() final {
return PatchedParam::shouldDrawDotOnName(); }
45 ActionResult
buttonAction(deluge::hid::Button b,
bool on,
bool inCardRoutine)
final {
46 return PatchedParam::buttonAction(b, on, inCardRoutine);
51 uint32_t getParamIndex() final {
return PatchedParam::getParamIndex(); }
53 return PatchedParam::patchingSourceShortcutPress(s, previousPressStillActive);
57 bool allowsLearnMode() final {
return MenuItemWithCCLearning::allowsLearnMode(); }
58 void learnKnob(
MIDICable* cable, int32_t whichKnob, int32_t modKnobMode, int32_t midiChannel)
final {
59 MenuItemWithCCLearning::learnKnob(cable, whichKnob, modKnobMode, midiChannel);
62 int32_t getParamValue() {
71 void writeCurrentValue() final;
72 virtual int32_t getFinalValue();