2023-01-22 12:31:05 +01:00
|
|
|
#ifndef GUARD_E847906A380863BFA9BE2CD8BC8943DA
|
|
|
|
#define GUARD_E847906A380863BFA9BE2CD8BC8943DA
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
struct gsa_input {
|
2023-03-31 07:05:54 +02:00
|
|
|
struct {
|
|
|
|
bool dpad_up, dpad_down, dpad_left, dpad_right, face_up, face_down,
|
|
|
|
face_left, face_right, l, r, start, select;
|
|
|
|
} down, pressed;
|
2023-01-22 12:34:32 +01:00
|
|
|
i32 x_dir;
|
|
|
|
i32 y_dir;
|
2023-01-22 12:31:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct gsa_input input;
|
|
|
|
|
2023-03-31 07:05:54 +02:00
|
|
|
/* todo: should be private? */
|
|
|
|
void gsa_input_tick();
|
2023-01-22 12:31:05 +01:00
|
|
|
|
|
|
|
#endif /* GUARD_E847906A380863BFA9BE2CD8BC8943DA */
|