aboutsummaryrefslogtreecommitdiffstats
path: root/include/events.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/events.hpp')
-rw-r--r--include/events.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/events.hpp b/include/events.hpp
index 1f06544..6251fac 100644
--- a/include/events.hpp
+++ b/include/events.hpp
@@ -8,7 +8,9 @@
#include <SDL2/SDL.h>
#include <string>
-#include <common.hpp>
+
+#include <config.hpp>
+#include <vector2.hpp>
class World;
@@ -38,6 +40,14 @@ struct MouseClickEvent {
int button;
};
+struct MouseReleaseEvent {
+ MouseReleaseEvent(vec2 pos, int b)
+ : position(pos), button(b) {}
+
+ vec2 position;
+ int button;
+};
+
struct KeyDownEvent {
KeyDownEvent(SDL_Keycode kc = 0)
: keycode(kc) {}