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/control.h | |
parent | d6f7ac4c09ffb0717467790d9acc27df75e25b21 (diff) | |
download | gold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.tar.gz gold-mine-run-9ecd65467232071b18a7c6f782a22264046ebf45.zip |
Joystick support
Diffstat (limited to 'src/control.h')
-rw-r--r-- | src/control.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/control.h b/src/control.h new file mode 100644 index 0000000..f4f02c7 --- /dev/null +++ b/src/control.h @@ -0,0 +1,15 @@ +#ifndef _CONTROL_H +#define _CONTROL_H + +#define CTL_NONE 0 +#define CTL_UP 1 +#define CTL_DOWN 2 +#define CTL_RIGHT 4 +#define CTL_LEFT 16 +#define CTL_FIRE1 32 +#define CTL_FIRE2 64 + +void control_init(); +uint8_t control_read(); + +#endif /* _CONTROL_H */ |