aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-29 10:49:53 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:48 +0100
commit743d715722d03e8a3b3f438cb0e296f9100372f7 (patch)
treec823ec60d9c78c05aa9f1510af6ed95e870fe1a5
parent8a3e09f0c2e18d7b56a1972facf5124457ed7f81 (diff)
downloadusdx-743d715722d03e8a3b3f438cb0e296f9100372f7.tar.gz
usdx-743d715722d03e8a3b3f438cb0e296f9100372f7.tar.xz
usdx-743d715722d03e8a3b3f438cb0e296f9100372f7.zip
added mouse_move signal to event manager
-rw-r--r--src/menu/event_manager.cpp2
-rw-r--r--src/menu/event_manager.hpp4
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;
};
};