diff options
| author | Rudy Bousset <rbousset@z2r4p1.le-101.fr> | 2020-02-14 19:40:39 +0100 | 
|---|---|---|
| committer | Rudy Bousset <rbousset@z2r4p1.le-101.fr> | 2020-02-14 19:40:39 +0100 | 
| commit | e021654536a007dc22a48688f205fc68fa662e4d (patch) | |
| tree | ed06134e5b58f798d7c69ad14eaafa3309e67345 | |
| parent | True [W][A][S][D] (diff) | |
| download | 42-cub3d-e021654536a007dc22a48688f205fc68fa662e4d.tar.gz 42-cub3d-e021654536a007dc22a48688f205fc68fa662e4d.tar.bz2 42-cub3d-e021654536a007dc22a48688f205fc68fa662e4d.tar.xz 42-cub3d-e021654536a007dc22a48688f205fc68fa662e4d.tar.zst 42-cub3d-e021654536a007dc22a48688f205fc68fa662e4d.zip | |
Norme, removed key events debug printf
Diffstat (limited to '')
| -rw-r--r-- | src/ft_extra_keys.c | 5 | ||||
| -rw-r--r-- | src/ft_key_events.c | 1 | 
2 files changed, 0 insertions, 6 deletions
| diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index 79c0ed2..ebcaf48 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -13,7 +13,6 @@  #include <cub3d.h>  #include <stdint.h>  #include <math.h> -#include <stdio.h>   int  	ft_left_key(t_cub *clist) @@ -30,8 +29,6 @@ int  	sav_plane_x = pl->plane_x;  	pl->plane_x = pl->plane_x * cos(rot_speed) - pl->plane_y * sin(rot_speed);  	pl->plane_y = sav_plane_x * sin(rot_speed) + pl->plane_y * cos(rot_speed); -	printf("dir_x> %f\n", pl->dir_x); -	printf("dir_y> %f\n", pl->dir_y);  	return (0);  } @@ -50,8 +47,6 @@ int  	sav_plane_x = pl->plane_x;  	pl->plane_x = pl->plane_x * cos(-rot_speed) - pl->plane_y * sin(-rot_speed);  	pl->plane_y = sav_plane_x * sin(-rot_speed) + pl->plane_y * cos(-rot_speed); -	printf("dir_x> %f\n", pl->dir_x); -	printf("dir_y> %f\n", pl->dir_y);  	return (0);  } diff --git a/src/ft_key_events.c b/src/ft_key_events.c index 0609ba4..92928ea 100644 --- a/src/ft_key_events.c +++ b/src/ft_key_events.c @@ -57,7 +57,6 @@ int  	fun_ptr[4] = ft_left_key;  	fun_ptr[5] = ft_right_key;  	keycode = ft_set_keycode(tmp_code); -	ft_printf("Key [%d] pressed\n", tmp_code);  	if (keycode <= 5)  	{  		(*fun_ptr[keycode])(clist); | 
