summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
authorJohnny Richard <johnnyricha@gmail.com>2021-04-13 02:53:13 +0200
committerJohnny Richard <johnnyricha@gmail.com>2021-04-13 02:53:13 +0200
commitf3d0c2c7bb2dd82b677fe883212d7442b8acb49e (patch)
treeb3cd866a257406281144075c0af2407b9de2978c /src/controller.h
parent43c0fb1fba4b467fad4260b87cd8149692d44910 (diff)
Move controller update to a new update function
Diffstat (limited to 'src/controller.h')
-rw-r--r--src/controller.h4
1 files changed, 4 insertions, 0 deletions
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 <SDL.h>
#include <stdbool.h>
#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