diff --git a/core/hostevents.cpp b/core/hostevents.cpp
index 4ad7e78..645316e 100644
--- a/core/hostevents.cpp
+++ b/core/hostevents.cpp
@@ -42,7 +42,7 @@ void EventManager::poll_events()
WindowEvent we;
we.sub_type = event.window.event;
we.window_id = event.window.windowID;
- this->post_event(we);
+ this->_window_signal.emit(we);
}
break;
@@ -54,8 +54,13 @@ void EventManager::poll_events()
key_ups++;
break;
- case SDL_MOUSEMOTION:
- mouse_motions++;
+ case SDL_MOUSEMOTION: {
+ MouseEvent me;
+ me.xrel = event.motion.xrel;
+ me.yrel = event.motion.yrel;
+ me.flags = MOUSE_EVENT_MOTION;
+ this->_mouse_signal.emit(me);
+ }
break;
default:
diff --git a/core/hostevents.h b/core/hostevents.h
index 32695a6..4e7b749 100644
--- a/core/hostevents.h
+++ b/core/hostevents.h
@@ -22,33 +22,34 @@ along with this program. If not, see .
#ifndef EVENT_MANAGER_H
#define EVENT_MANAGER_H
+#include
+
#include
-#include
-#include
-#include