You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
320 B
23 lines
320 B
|
|
#pragma once |
|
|
|
#include <SDL2/SDL.h> |
|
|
|
|
|
struct input_state |
|
{ |
|
bool window_closed; |
|
bool escape; |
|
bool left; |
|
bool right; |
|
bool up; |
|
bool down; |
|
}; |
|
|
|
void |
|
inputProcessEvent(input_state* is, SDL_Event& e); |
|
|
|
// NOTE: convenience function that provides a while(SDL_PollEvents()) loop |
|
void |
|
inputProcessEvents(input_state* is); |
|
|
|
|