diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-22 13:58:05 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-22 13:58:22 +0100 |
commit | 9ecd65467232071b18a7c6f782a22264046ebf45 (patch) | |
tree | 1a6110a495069900ac70b53d9d2746152aab1202 /src/joy.h | |
parent | d6f7ac4c09ffb0717467790d9acc27df75e25b21 (diff) | |
download | gold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.tar.gz gold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.zip |
Joystick support
Diffstat (limited to 'src/joy.h')
-rw-r--r-- | src/joy.h | 10 |
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 */ |