aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 168d6c0..7955dc6 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -15,6 +15,7 @@
#include <cub3d.h>
#include <stdlib.h>
+#include <stdio.h>
static int
ft_w_key(t_cub *clist)
{
@@ -29,6 +30,7 @@ static int
pl->pos_y += 0.3;
else if (pl->view_side == 4)
pl->pos_x -= 0.3;
+ printf("PosX> %f\nPosY> %f\n", pl->pos_x, pl->pos_y);
ft_drawmap(clist);
return (0);
}