2023-04-27 09:13:32 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* manage.c :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/04/27 12:52:14 by erey-bet #+# #+# */
|
2023-05-03 11:48:36 -04:00
|
|
|
/* Updated: 2023/05/03 14:53:14 by erey-bet ### ########.fr */
|
2023-04-27 09:13:32 -04:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
void manage(mlx_key_data_t keydata, void *param)
|
|
|
|
{
|
|
|
|
t_game *game;
|
|
|
|
|
|
|
|
game = param;
|
|
|
|
if (manage_keys(keydata, game))
|
|
|
|
raycasting(game);
|
|
|
|
}
|