Files
asteroids/input.h
2025-10-14 12:29:13 +01:00

21 lines
282 B
C

#ifndef INPUT_H
#define INPUT_H
typedef void (*input_callback_t)();
typedef struct {
int spin;
int thrust;
bool quit;
} input_state_t;
extern input_state_t input;
int input_init();
void input_cleanup();
void input_on_shoot(input_callback_t cb);
void input_handle();
#endif