diff --git a/inc/lzy.h b/inc/lzy.h index b3c6ac8..577ec3c 100644 --- a/inc/lzy.h +++ b/inc/lzy.h @@ -394,6 +394,8 @@ int LZY_PollEvent(LZY_Event *e) { e->type = LZY_KEYUP; e->u.key.scancode = gk_e.key; return 1; + default: + return -1; } } } @@ -815,7 +817,8 @@ int LZY_PollEvent(LZY_Event *e) { } } } - } break; + return -1; + } case SDL_KEYUP: { int i = LZYK_COUNT; while (i-- > 0) { @@ -826,7 +829,10 @@ int LZY_PollEvent(LZY_Event *e) { return 1; } } - } break; + return -1; + } + default: + return -1; } }