[bootloader] Skip animation on keyboard event

This commit is contained in:
Yaya-Cout
2025-09-07 17:43:45 +02:00
parent 768bd52d46
commit a1f598194c
2 changed files with 7 additions and 2 deletions

View File

@@ -69,7 +69,12 @@ void Interface::drawLoading() {
for (uint8_t i = 0; i < strlen(Messages::mainTitle); i++) {
char tmp[2] = {Messages::mainTitle[i], '\0'};
ctx->drawString(tmp, KDPoint(initPos + i * (fontSize.width()), ImageStore::Computer->height() + 25 + 10), KDFont::LargeFont, KDColorBlack, KDColorWhite);
Ion::Timing::msleep(50);
int t = 50;
Ion::Events::Event e = Ion::Events::getEvent(&t);
if (e.isKeyboardEvent()){
return;
}
}
Ion::Timing::msleep(500);
}

View File

@@ -81,7 +81,7 @@ public:
constexpr static const char * aboutMessage4 = "and select the OS";
constexpr static const char * aboutMessage5 = "to boot.";
constexpr static const char * bootloaderVersion = "Version 1.1.1 - RECOVER.24.4";
constexpr static const char * bootloaderVersion = "Version 1.1.2 - RECOVER.24.4";
//USB NAMES
constexpr static const char * usbUpsilonBootloader = "NumWorks Calculator";