Trabajando en las notificaciones

This commit is contained in:
2022-11-23 18:20:29 +01:00
parent a8b467290f
commit 1aac5b7719
6 changed files with 36 additions and 21 deletions

View File

@@ -82,7 +82,7 @@ void Logo::checkEventHandler()
}
// Comprueba las teclas que se han pulsado
if ((eventHandler->type == SDL_KEYDOWN && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONDOWN))
if ((eventHandler->type == SDL_KEYUP && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONUP))
{
switch (eventHandler->key.keysym.scancode)
{
@@ -125,6 +125,7 @@ void Logo::checkEventHandler()
break;
default:
section.subsection = SUBSECTION_LOGO_TO_TITLE;
endSection();
break;
}
@@ -317,12 +318,13 @@ void Logo::switchPalette()
// Termina la sección
void Logo::endSection()
{
if (options->online.enabled && options->online.jailerID == "")
{
section.name = SECTION_PROG_ENTER_ID;
}
else
{
section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE;
}
section.name = SECTION_PROG_ENTER_ID;
//if (options->online.enabled && options->online.jailerID == "")
//{
// section.name = SECTION_PROG_ENTER_ID;
//}
//else
//{
// section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE;
//}
}