summaryrefslogtreecommitdiff
path: root/src/event.cpp
blob: ba7fda88cf43506cf623bed08ead9182aec1622b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "event.hpp"

Event::Event()
{
	run = true;
};

int Event::Poll()
{
	SDL_PollEvent(&v);
};

void Event::off()
{
	run = false;
}

bool Event::gRun()
{
	return run;
};

SDL_Event& Event::gEvent()
{
	SDL_Event* x = &v;
	return *x;
};

int Event::gEventType()
{
	return v.type;
};