#include "audio/sound_manager.hpp"
#include "main.hpp"
#include "control/joystickkeyboardcontroller.hpp"
+#include "exceptions.hpp"
static const float DEFAULT_SPEED = .02;
static const float SCROLL = 60;
while(SDL_PollEvent(&event)) {
main_controller->process_event(event);
if(event.type == SDL_QUIT)
- throw std::runtime_error("received window close");
+ throw graceful_shutdown();
}
if(main_controller->hold(Controller::UP)) {