fix pollevent

This commit is contained in:
KikooDX 2022-03-06 14:47:16 +01:00
parent f4ad8a71bb
commit e097d0de73
1 changed files with 8 additions and 2 deletions

View File

@ -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;
}
}