3 Controle::Controle(Player
&p
) : jogador( p
) {
7 void Controle::handleEvents() {
9 while( SDL_PollEvent( &e
) ) {
12 void (*p
) (void*) = (void (*)(void*))e
.user
.data1
;
20 switch (e
.key
.keysym
.sym
) {
22 jogador
.game
->reloadLua();
25 jogador
.setPosition(jogador
.game
->getSpawn().x
,jogador
.game
->getSpawn().y
);
27 default: handleEvent(e
);break;