1
0

🏗️」 wip: Started keybind handling

This commit is contained in:
2024-09-12 13:41:58 +02:00
parent 4e30780f88
commit 621a7b8e21
4 changed files with 48 additions and 17 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/11 16:38:40 by adjoly #+# #+# */
/* Updated: 2024/09/11 17:06:22 by adjoly ### ########.fr */
/* Updated: 2024/09/12 11:40:07 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -22,6 +22,12 @@ typedef struct s_cub
char **map;
} t_cub;
#define ESCAPE_KEY 41
#define W_KEY 26
#define S_KEY 22
#define A_KEY 4
#define D_KEY 7
/**
* @brief This function is used to handle keypress
*