Remove unhandled enum warning

This commit is contained in:
SeanOMik 2021-03-12 17:33:48 -06:00
parent b9255b1bfb
commit a5ff1a1095
No known key found for this signature in database
GPG Key ID: CA09E5BE1F32728A
1 changed files with 26 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "entity.h"
#include "event.h"
#include <SFML/Window/Event.hpp>
#include <iostream>
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;
}
}
}