From a5ff1a10956c54815412d760674cfbc9544b9280 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 12 Mar 2021 17:33:48 -0600 Subject: [PATCH] Remove unhandled enum warning --- src/game.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index c7c973e..c8be998 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -8,6 +8,7 @@ #include "entity.h" #include "event.h" +#include #include simpleengine::Game::Game(int w, int h, const std::string& window_name) { @@ -40,6 +41,31 @@ void simpleengine::Game::UpdateSFMLEvents() { switch (event.type) { case sf::Event::Closed: window->close(); + break; + case sf::Event::Resized: + case sf::Event::LostFocus: + case sf::Event::GainedFocus: + case sf::Event::TextEntered: + case sf::Event::KeyPressed: + case sf::Event::KeyReleased: + case sf::Event::MouseWheelMoved: + case sf::Event::MouseWheelScrolled: + case sf::Event::MouseButtonPressed: + case sf::Event::MouseButtonReleased: + case sf::Event::MouseMoved: + case sf::Event::MouseEntered: + case sf::Event::MouseLeft: + case sf::Event::JoystickButtonPressed: + case sf::Event::JoystickButtonReleased: + case sf::Event::JoystickMoved: + case sf::Event::JoystickConnected: + case sf::Event::JoystickDisconnected: + case sf::Event::TouchBegan: + case sf::Event::TouchMoved: + case sf::Event::TouchEnded: + case sf::Event::SensorChanged: + case sf::Event::Count: + break; } } }