aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui_menu.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-07-30 11:02:39 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-07-30 11:02:39 -0400
commitb1f93a4f8a5a3e84db9f00d0b41749d4fb32ed26 (patch)
tree83016b80294f6b7681093ae46aa55840b6fb9ec1 /src/ui_menu.cpp
parent69768fdc5050bbe5877bf80108584400ea292a4f (diff)
event feature work; ozone bgm redone
Diffstat (limited to 'src/ui_menu.cpp')
-rw-r--r--src/ui_menu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui_menu.cpp b/src/ui_menu.cpp
index 11c10a7..a48182b 100644
--- a/src/ui_menu.cpp
+++ b/src/ui_menu.cpp
@@ -11,12 +11,12 @@
static Menu* currentMenu = nullptr;
-void SDLReceiver::receive(const MainSDLEvent& mse)
+bool SDLReceiver::receive(const MainSDLEvent& mse)
{
switch (mse.event.type) {
case SDL_QUIT:
game::endGame();
- return;
+ return true;
break;
case SDL_MOUSEMOTION:
//ui::premouse.x = e.motion.x;
@@ -36,6 +36,7 @@ void SDLReceiver::receive(const MainSDLEvent& mse)
default:
break;
}
+ return true;
}
bool SDLReceiver::clicked = false;