summaryrefslogtreecommitdiff
path: root/inc/event.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-02 22:45:16 -0500
committertom <tom@ground-control>2015-05-02 22:45:16 -0500
commitbaa7977e0e325e92c700c47b4adea9082749f1d7 (patch)
tree1bad3b1bbe5eab4ffe8c6a705c2609de4cfe6401 /inc/event.hpp
parent5d97a0154ed1c5584c50884e086dcaa3536e5672 (diff)
renamed so atom detects it is a cpp file :x
Diffstat (limited to 'inc/event.hpp')
-rw-r--r--inc/event.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/event.hpp b/inc/event.hpp
new file mode 100644
index 0000000..9ba7eea
--- /dev/null
+++ b/inc/event.hpp
@@ -0,0 +1,21 @@
+#ifndef event_h
+#define event_h
+
+#include "window.h"
+
+class Event
+{
+ public:
+ Event();
+ int Poll();
+ void off();
+ bool gRun();
+ SDL_Event& gEvent();
+ int gEventType();
+
+ private:
+ bool run;
+ SDL_Event v;
+};
+
+#endif