/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* input.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mcolonna +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/17 14:43:09 by mcolonna #+# #+# */ /* Updated: 2024/10/17 14:59:41 by mcolonna ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef INPUT_H # define INPUT_H # include /// @brief Modified by the input of the user. A value becomes true /// when the user presses the corresponding key. typedef struct s_input_actions { bool left; bool right; bool up; bool down; bool quit; } t_input_actions; extern t_input_actions g_input_actions; int keypress(int keycode); int keyrelease(int keycode); void input_init(void); #endif