Add restart and handle quitting with callback
This commit is contained in:
4
input.h
4
input.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user