mmilewski/magame — Issue #2: Feature: add effects show to menu
Author: mmilewski
Created: 2011-12-18 17:32:24+00:00
State: open

Code is currently commented out, so file `EffectsShow.h` remains unused:

void App::ProcessEvents() {
// przyjrzyj zdarzenia
SDL_Event event;
while (SDL_PollEvent(&event)) {
// if (event.type == SDL_KEYDOWN && event.key.keysym.sym==SDLK_e) {
// m_app_state.reset(new Show);
// m_app_state->Init();
// m_app_state->Start();
// return;
// }
// else if (event.type == SDL_KEYDOWN && event.key.keysym.sym==SDLK_q) {
// exit(0);
// }
// else
if (event.type == SDL_VIDEORESIZE) {
Resize(event.resize.w, event.resize.h);
}
else {
m_app_state->ProcessEvents(event);
}
}
}