diff options
author | tom <tom@ground-control> | 2015-04-30 22:20:53 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2015-04-30 22:20:53 -0500 |
commit | e1d75dfdf0727776adf0b3d44995ccf0e03487b3 (patch) | |
tree | f26074b8e9c598df33c66b1c57aad1e4dcd51f03 /src/event.h |
first commit
Diffstat (limited to 'src/event.h')
-rw-r--r-- | src/event.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h new file mode 100644 index 0000000..9ba7eea --- /dev/null +++ b/src/event.h @@ -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 |