Renamed inputs structs.

This commit is contained in:
Ulysse Cura 2026-08-10 00:11:39 +02:00
parent ba3eaf999e
commit f084d3b406
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 2179c7eb94e8c563d2a0dbe8b3e9048cf2e27512
Subproject commit abf1231aac57cbfe6aa3c3c03aacfffb5b5a9970

View File

@ -141,16 +141,16 @@ int game_init(void)
void game_handle_event(void)
{
event_t event;
input_event_t event;
while(pollevent(&event))
while(poll_event(&event))
{
if(event.type == EVENT_KEY_DOWN)
if(event.type == INPUT_EVENT_KEY_DOWN)
game.events.keys[event.key] = true;
else if(event.type == EVENT_KEY_UP)
else if(event.type == INPUT_EVENT_KEY_UP)
game.events.keys[event.key] = false;
if(event.type == EVENT_QUIT)
if(event.type == INPUT_EVENT_QUIT)
game.is_running = false;
}
}