aboutsummaryrefslogtreecommitdiff
path: root/src/joy.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-22 13:58:05 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-22 13:58:22 +0100
commit9ecd65467232071b18a7c6f782a22264046ebf45 (patch)
tree1a6110a495069900ac70b53d9d2746152aab1202 /src/joy.h
parentd6f7ac4c09ffb0717467790d9acc27df75e25b21 (diff)
downloadgold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.tar.gz
gold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.zip
Joystick support
Diffstat (limited to 'src/joy.h')
-rw-r--r--src/joy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/joy.h b/src/joy.h
new file mode 100644
index 0000000..f510c2a
--- /dev/null
+++ b/src/joy.h
@@ -0,0 +1,10 @@
+#ifndef _JOY_H
+#define _JOY_H
+
+/* it also calibrates */
+uint8_t joy_detect();
+
+/* returns the bits specified in control.h */
+uint8_t joy_read();
+
+#endif /* _JOY_H */