aboutsummaryrefslogtreecommitdiffstats
path: root/include/events.hpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-11-22 21:25:34 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-11-22 21:25:34 -0500
commit05dd30a5158184fea83d93f53e8100aecaebb74a (patch)
tree9bf7a49b1aeb7d9b41d0c2fffbddc7f91243bf32 /include/events.hpp
parente51b9ee1e0f9b8aeef98b8875f66260db0e7b502 (diff)
Scaling textures (start)
Diffstat (limited to 'include/events.hpp')
-rw-r--r--include/events.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/events.hpp b/include/events.hpp
index 8a09638..975855c 100644
--- a/include/events.hpp
+++ b/include/events.hpp
@@ -12,6 +12,10 @@
class World;
+//////////////////////////
+/// INPUT EVENTS
+//////////////////////////
+
struct MouseScrollEvent {
MouseScrollEvent(int sd = 0)
: scrollDistance(sd) {}
@@ -41,6 +45,10 @@ struct KeyUpEvent {
SDL_Keycode keycode;
};
+//////////////////////////
+/// ENGINE EVENTS
+//////////////////////////
+
struct GameEndEvent {
GameEndEvent(bool r = true)
: really(r) {}
@@ -48,6 +56,10 @@ struct GameEndEvent {
bool really;
};
+//////////////////////////
+/// WORLD EVENTS
+//////////////////////////
+
struct BGMToggleEvent {
BGMToggleEvent(std::string f = "", World *w = nullptr)
: file(f), world(w) {}
@@ -56,6 +68,10 @@ struct BGMToggleEvent {
World *world;
};
+//////////////////////////
+/// WINDOW EVENTS
+//////////////////////////
+
struct WindowResizeEvent {
WindowResizeEvent(int w = 640, int h = 480)
: x(w), y(h) {}
@@ -64,4 +80,12 @@ struct WindowResizeEvent {
int y;
};
+struct ScreenshotEvent {
+ ScreenshotEvent(int w = game::SCREEN_HEIGHT, int h = game::SCREEN_WIDTH)
+ : w(w), h(h) {}
+
+ int w;
+ int h;
+};
+
#endif // EVENTS_HPP_