summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
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