Renamed inputs structs.
This commit is contained in:
parent
ba3eaf999e
commit
f084d3b406
|
|
@ -1 +1 @@
|
|||
Subproject commit 2179c7eb94e8c563d2a0dbe8b3e9048cf2e27512
|
||||
Subproject commit abf1231aac57cbfe6aa3c3c03aacfffb5b5a9970
|
||||
10
src/game.c
10
src/game.c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue