summaryrefslogtreecommitdiff
path: root/src/event.cpp
blob: c4f139e0ead883e8b8f0063d12d837c7ad5e0603 (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 "sdl/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;
}