37 void writeCurrentValue()
override {
42 openUI(&loadMidiDeviceDefinitionUI);
52 Output* output = getCurrentOutput();
53 return (output && output->type == OutputType::MIDI_OUT);
56 void renderSubmenuItemTypeForOled(int32_t yPixel)
final {
59 int32_t startX = getSubmenuItemTypeRenderIconStart();
61 if (getToggleValue()) {
62 image.drawGraphicMultiLine(deluge::hid::display::OLED::checkedBoxIcon, startX, yPixel,
63 kSubmenuIconSpacingX);
70 char* fileName = strrchr((
char*)fullPath,
'/');
72 image.drawString(++fileName, kTextSpacingX, yPixel + kTextSpacingY, kTextSpacingX, kTextSpacingY);
75 image.drawGraphicMultiLine(deluge::hid::display::OLED::uncheckedBoxIcon, startX, yPixel,
76 kSubmenuIconSpacingX);