Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
so_long/ft_move_character.c

47 lines
1.3 KiB
C
Raw Normal View History

2024-01-07 22:45:08 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_move_character.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/07 19:13:01 by adjoly #+# #+# */
2024-01-08 13:33:55 +01:00
/* Updated: 2024/01/08 13:24:49 by adjoly ### ########.fr */
2024-01-07 22:45:08 +01:00
/* */
/* ************************************************************************** */
#include "so_long.h"
int ft_move_up(void *param)
{
}
int ft_move_down(void *param)
{
}
int ft_move_left(void *param)
{
}
int ft_move_right(void *param)
{
2024-01-08 13:33:55 +01:00
2024-01-07 22:45:08 +01:00
}
int ft_move_character(int key, void *param)
{
if (key == 26)
ft_move_up(param);
else if (key == 22)
ft_move_down(param);
else if (key == 4)
ft_move_right(param);
else if (key == 7)
ft_move_left(param);
return (0);
}