From 9ecd65467232071b18a7c6f782a22264046ebf45 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 22 Jul 2023 13:58:05 +0100 Subject: Joystick support --- src/control.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/control.h (limited to 'src/control.h') 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 */ -- cgit v1.2.3