#include <stdio.h>
#include <stdlib.h>
#include "allegro.h"
#include "input_reader.h"
Functions | |
void | test_function_keys (Game_variables variables) |
function to test if a function key is pressed and change the variables struct | |
int | test_player_input (Game_variables variables, Player_variables *p_array) |
int | input_reader (Game_variables variables, Player_variables *player_array) |
int | buton_pressed (Player_variables *player_array, int player) |
function to know if a buton has been pressed, usefull for menu validation | |
int | want_move (Player_variables *player_array, int a_player) |
function to know if a player want to move chek for the player input and return 0 if the player do not want to move else 1 | |
void | clear_input_states (Player_variables *player_array, int a_player) |
function to clear player input state caution : highly dangerous, use only if you have checked that the player has no control (player[i]->has_control == 0) |