diff --git a/main.cpp b/main.cpp index 44a7bb3..e0e50f3 100644 --- a/main.cpp +++ b/main.cpp @@ -78,12 +78,8 @@ int main(int argc, char* argv[]) { while (SDL_PollEvent(&event)) { switch (event.type) { case SDL_KEYDOWN: - switch(event.key.keysym.sym) { - case SDLK_LCTRL: // "B" button on PocketGO exit(0); break; - } - break; } } rect.x = 0; @@ -98,6 +94,15 @@ int main(int argc, char* argv[]) { SDL_BlitSurface(logoimg, NULL, screen, &dstrect); if (i == dest_y) { Mix_PlayChannel(-1, logosound, 0); + while(1) { + while (SDL_PollEvent(&event)) { + switch (event.type) { + case SDL_KEYDOWN: + exit(0); + break; + } + } + } } while (curr_time < old_time + 16) { curr_time = SDL_GetTicks();