Compare commits
No commits in common. "06d2d6f8ad56933fb8c43b136a085865f71d7821" and "ba3eaf999e3f29ac85bb9b7ed8fd5ea6b45598f4" have entirely different histories.
06d2d6f8ad
...
ba3eaf999e
|
|
@ -1 +1 @@
|
|||
Subproject commit 571bb9699df2b281157a68217ea490482bccd729
|
||||
Subproject commit 2179c7eb94e8c563d2a0dbe8b3e9048cf2e27512
|
||||
10
src/game.c
10
src/game.c
|
|
@ -141,16 +141,16 @@ int game_init(void)
|
|||
|
||||
void game_handle_event(void)
|
||||
{
|
||||
input_event_t event;
|
||||
event_t event;
|
||||
|
||||
while(poll_event(&event))
|
||||
while(pollevent(&event))
|
||||
{
|
||||
if(event.type == INPUT_EVENT_KEY_DOWN)
|
||||
if(event.type == EVENT_KEY_DOWN)
|
||||
game.events.keys[event.key] = true;
|
||||
else if(event.type == INPUT_EVENT_KEY_UP)
|
||||
else if(event.type == EVENT_KEY_UP)
|
||||
game.events.keys[event.key] = false;
|
||||
|
||||
if(event.type == INPUT_EVENT_QUIT)
|
||||
if(event.type == EVENT_QUIT)
|
||||
game.is_running = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue