#ifndef CONTROLLER_H #define CONTROLLER_H #include #include #ifdef __cplusplus extern "C" { #endif typedef struct controller_t { bool up; bool down; bool left; bool right; } controller_t; void controller_update(controller_t *self, SDL_Event *event); #ifdef __cplusplus } #endif #endif /* CONTROLLER_H */