aboutsummaryrefslogtreecommitdiffstats
path: root/include/events.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-19 20:55:39 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-19 20:55:39 -0500
commitdf22618e71ceeb73d3f4c6b8f74d9c07fce3ccea (patch)
tree7ad0c2d335fec50d1ccd9624effea317e847cebd /include/events.hpp
parent59edd60ebec61bf24dd27063f85bcd049fd0af13 (diff)
inventory item dragging
Diffstat (limited to 'include/events.hpp')
-rw-r--r--include/events.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/events.hpp b/include/events.hpp
index 5939c3d..6251fac 100644
--- a/include/events.hpp
+++ b/include/events.hpp
@@ -40,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) {}