aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index dad9454..7a81bd5 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1202,7 +1202,10 @@ void InputSystem::receive(const MainSDLEvent& event)
premouse.y=e.motion.y;
break;
- //case SDL_MOUSEBUTTONUP:
+ case SDL_MOUSEBUTTONUP:
+ ev.emit<MouseReleaseEvent>(mouse, e.button.button);
+ break;
+
case SDL_MOUSEBUTTONDOWN:
ev.emit<MouseClickEvent>(mouse, e.button.button);