Add restart and handle quitting with callback

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent 10be5ec391
commit d6ec24ae5d
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