Add restart and handle quitting with callback

This commit is contained in:
Camden Dixie O'Brien
2025-10-15 13:13:44 +01:00
parent db1fc63652
commit a3486b47c7
4 changed files with 41 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ typedef void (*input_callback_t)();
typedef struct {
int spin;
int thrust;
bool quit;
} input_state_t;
extern input_state_t input;
@@ -15,6 +14,9 @@ int input_init();
void input_cleanup();
void input_on_shoot(input_callback_t cb);
void input_on_restart(input_callback_t cb);
void input_on_quit(input_callback_t cb);
void input_handle();
#endif