20 void writeCurrentValue()
override {
25 openUI(&loadMidiDeviceDefinitionUI);
35 Output* output = getCurrentOutput();
36 return (output && output->type == OutputType::MIDI_OUT);
39 void renderSubmenuItemTypeForOled(int32_t yPixel)
final {
42 int32_t startX = getSubmenuItemTypeRenderIconStart();
44 if (getToggleValue()) {
45 image.drawGraphicMultiLine(deluge::hid::display::OLED::checkedBoxIcon, startX, yPixel,
46 kSubmenuIconSpacingX);
53 char* fileName = strrchr((
char*)fullPath,
'/');
55 image.drawString(++fileName, kTextSpacingX, yPixel + kTextSpacingY, kTextSpacingX, kTextSpacingY);
58 image.drawGraphicMultiLine(deluge::hid::display::OLED::uncheckedBoxIcon, startX, yPixel,
59 kSubmenuIconSpacingX);