summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2021-04-13 02:53:13 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2021-10-28 02:22:57 +0200
commitd8336885a4c053544fe3491335da0f76afffdfb9 (patch)
treeb3cd866a257406281144075c0af2407b9de2978c /src/controller.h
parent9a285cc3bdb8d5870fea5f07235a3e44786a0317 (diff)
Move controller update to a new update function
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
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