diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/menu/event_manager.cpp | 2 | ||||
-rw-r--r-- | src/menu/event_manager.hpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/menu/event_manager.cpp b/src/menu/event_manager.cpp index 990df875..ecb5668f 100644 --- a/src/menu/event_manager.cpp +++ b/src/menu/event_manager.cpp @@ -98,7 +98,7 @@ namespace usdx break; case SDL_MOUSEMOTION: - LOG4CXX_ERROR(log, L"mouse"); + mouse_move(event.motion.x, event.motion.y); } } } diff --git a/src/menu/event_manager.hpp b/src/menu/event_manager.hpp index 03529dca..bfdda35b 100644 --- a/src/menu/event_manager.hpp +++ b/src/menu/event_manager.hpp @@ -36,6 +36,7 @@ #include <boost/thread/condition.hpp> #include <boost/thread/mutex.hpp> #include <boost/thread/thread.hpp> +#include <boost/signals2.hpp> #include <log4cxx/logger.h> @@ -121,6 +122,9 @@ namespace usdx * left the buffer for a new element or not. */ bool available(void); + + + boost::signals2::signal<void (int, int)> mouse_move; }; }; |