aboutsummaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-07-25 10:13:00 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-07-25 10:13:00 -0300
commitaedf1cb71ae46136e4299c9b71caa2a145268f3a (patch)
tree7b95b6e56920ad2ccea4e9772722950d711fbb16 /src/controller.h
parentf1a9fd8025c2ad284b7efb6783bf629d183c8045 (diff)
Controller header
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);