From f3d0c2c7bb2dd82b677fe883212d7442b8acb49e Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Tue, 13 Apr 2021 02:53:13 +0200 Subject: Move controller update to a new update function --- src/controller.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/controller.h') diff --git a/src/controller.h b/src/controller.h index bf22335..a97fc7a 100644 --- a/src/controller.h +++ b/src/controller.h @@ -1,6 +1,7 @@ #ifndef CONTROLLER_H #define CONTROLLER_H +#include #include #ifdef __cplusplus @@ -14,6 +15,9 @@ typedef struct controller_t { bool right; } controller_t; +void controller_update(controller_t *self, + SDL_Event *event); + #ifdef __cplusplus } #endif -- cgit v1.2.3