Fixed Init event keyboard

This commit is contained in:
fabio.olimpieri 2014-03-22 18:54:32 +00:00
parent 6c3218830b
commit ccdd0779d8

View File

@ -1112,6 +1112,7 @@ inline void read_keyboard () {
ordenador.jk = 0; ordenador.jk = 0;
pevento=&evento; pevento=&evento;
memset(&evento,0, sizeof(SDL_Event));
SDL_PollEvent (&evento); SDL_PollEvent (&evento);
if (pevento->type==SDL_QUIT) { if (pevento->type==SDL_QUIT) {