aboutsummaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.h')
-rw-r--r--src/controller.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/controller.h b/src/controller.h
new file mode 100644
index 0000000..0d474a7
--- /dev/null
+++ b/src/controller.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "config.h"
+
+b32 is_button_pressed(i32 btn);
+b32 is_button_held(i32 btn);
+b32 is_button_released(i32 btn);
+
+vec2 get_dir_input(void);
+
+void set_rumble(f32 duration, f32 strength);
+void stop_rumble(void);