aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 41e8186..e9738cf 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1272,6 +1272,7 @@ void InputSystem::update(entityx::EntityManager &en, entityx::EventManager &ev,
//case SDL_MOUSEBUTTONUP:
case SDL_MOUSEBUTTONDOWN:
+ ev.emit<MouseClickEvent>(mouse, e.button.button);
// run actions?
//if ((action::make = e.button.button & SDL_BUTTON_RIGHT))