aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-29 10:51:30 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:48 +0100
commit3ca6e32a9ecaa8514b9a30711cec20cf80722c23 (patch)
tree449370686727f344e2845a75e5c99eb035789fec /src/menu/application.cpp
parentf613ca3eed2fca5eb17e574c0b5324b4e47dbd7f (diff)
downloadusdx-3ca6e32a9ecaa8514b9a30711cec20cf80722c23.tar.gz
usdx-3ca6e32a9ecaa8514b9a30711cec20cf80722c23.tar.xz
usdx-3ca6e32a9ecaa8514b9a30711cec20cf80722c23.zip
added software cursor
Diffstat (limited to '')
-rw-r--r--src/menu/application.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index 9265aad7..48f1291c 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -27,6 +27,8 @@
#include "application.hpp"
#include "event_manager.hpp"
#include <exception>
+#include "software_mouse_pointer.hpp"
+
namespace usdx
{
@@ -105,6 +107,7 @@ namespace usdx
SDL_Event event;
EventManager event_manager;
boost::thread event_thread(boost::bind(&EventManager::handle_events, &event_manager));
+ overlays.push_front(new SoftwareMousePointer(NULL, &event_manager));
running = true;
while (running) {
@@ -156,7 +159,11 @@ namespace usdx
SDL_setFramerate(fps_manager, frames_per_second);
+ SDL_ShowCursor(SDL_DISABLE);
+
main_loop(display);
+
+ SDL_ShowCursor(SDL_ENABLE);
}
const int Application::get_display_width(void) const