From ccdd0779d8e7f8f367e4d9cf81d835fc5319a8dc Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Sat, 22 Mar 2014 18:54:32 +0000 Subject: [PATCH] Fixed Init event keyboard --- src/computer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/computer.c b/src/computer.c index b04a66d..5931fe4 100644 --- a/src/computer.c +++ b/src/computer.c @@ -1112,6 +1112,7 @@ inline void read_keyboard () { ordenador.jk = 0; pevento=&evento; + memset(&evento,0, sizeof(SDL_Event)); SDL_PollEvent (&evento); if (pevento->type==SDL_QUIT) {