diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6fb241e..677b01f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,6 +37,9 @@ DrawGameMenu() if (ImGui::Button("Snake")) { type = Game::snake; } + if (ImGui::Button("Pong")) { + type = Game::pong; + } ImGui::End(); return type; @@ -151,6 +154,7 @@ main(int argc, char** argv) SDL_Event event; while (cur_game_events < max_game_events && SDL_PollEvent(&event)) { if (event.type == SDL_EVENT_KEY_DOWN || + event.type == SDL_EVENT_KEY_UP || event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) { game_events.emplace_back(event); |
