19 lines
497 B
C
19 lines
497 B
C
|
|
#ifndef INPUT_H
|
||
|
|
#define INPUT_H
|
||
|
|
|
||
|
|
#include <ncurses.h>
|
||
|
|
#include "objects.h"
|
||
|
|
#include "utils.h"
|
||
|
|
|
||
|
|
/* Process a single key code and apply to game state.
|
||
|
|
Returns 1 if game should continue, 0 if quit (player inactive). */
|
||
|
|
int process_input(int input,
|
||
|
|
int *pause,
|
||
|
|
int *auto_shoot,
|
||
|
|
struct game_obj *player,
|
||
|
|
struct game_obj bullets[],
|
||
|
|
int bullet_attivi,
|
||
|
|
int *next_bullet);
|
||
|
|
|
||
|
|
#endif /* INPUT_H */
|