Intentando salir del modo demo con cualquier tecla
This commit is contained in:
@@ -70,10 +70,6 @@ void Demo::checkEventHandler()
|
||||
{
|
||||
switch (eventHandler->key.keysym.scancode)
|
||||
{
|
||||
case SDL_SCANCODE_ESCAPE:
|
||||
section.name = SECTION_PROG_TITLE;
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_B:
|
||||
screen->switchBorder();
|
||||
reLoadTextures();
|
||||
@@ -105,6 +101,7 @@ void Demo::checkEventHandler()
|
||||
break;
|
||||
|
||||
default:
|
||||
section.name == SECTION_PROG_TITLE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -158,6 +155,7 @@ void Demo::render()
|
||||
screen->renderFX();
|
||||
|
||||
//text->write(0, 0, std::to_string(counter));
|
||||
text->write(0, 0, std::to_string(section.name));
|
||||
|
||||
// Actualiza la pantalla
|
||||
screen->blit();
|
||||
|
||||
Reference in New Issue
Block a user