#pragma once #include 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);