diff --git a/navy-apps/libs/libminiSDL/src/event.c b/navy-apps/libs/libminiSDL/src/event.c index 4536771..dbdccb0 100644 --- a/navy-apps/libs/libminiSDL/src/event.c +++ b/navy-apps/libs/libminiSDL/src/event.c @@ -20,7 +20,7 @@ int SDL_PollEvent(SDL_Event *ev) { int SDL_WaitEvent(SDL_Event *event) { char buf[64]; while (NDL_PollEvent(buf, sizeof(buf)) == 0); - printf("key %s\n", buf); + printf("SDL_WaitEvent Recv %s\n", buf); if (buf[0] == 'k') { if (buf[1] == 'd') { event->type = SDL_KEYDOWN; @@ -29,6 +29,7 @@ int SDL_WaitEvent(SDL_Event *event) { } for (int i = 0; i < sizeof(keyname) / sizeof(keyname[0]); i ++ ) { if (strcmp(buf + 3, keyname[i]) == 0) { + printf("SDL_WaitEvent Got %s\n", keyname[i]); event->key.keysym.sym = i; return 1; }