diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 18:12:45 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 18:12:56 +0100 |
commit | 95670611b3636932b6e64c3e485a4e4bf40d8b07 (patch) | |
tree | 77a588ad4c2b9ac84bfc124f8fab37887d7d8bf8 /src/ft_key_events.c | |
parent | Norme (diff) | |
download | 42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.gz 42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.bz2 42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.xz 42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.zst 42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.zip |
Norme again
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r-- | src/ft_key_events.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c index 7b3cdf2..580bb17 100644 --- a/src/ft_key_events.c +++ b/src/ft_key_events.c @@ -1,37 +1,50 @@ +/* ************************************************************************** */ +/* LE - / */ +/* / */ +/* ft_key_events.c .:: .:/ . .:: */ +/* +:+:+ +: +: +:+:+ */ +/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */ +/* #+# #+ #+ #+# */ +/* Created: 2020/02/02 17:19:30 by rbousset #+# ## ## #+# */ +/* Updated: 2020/02/02 17:19:30 by rbousset ### #+. /#+ ###.fr */ +/* / */ +/* / */ +/* ************************************************************************** */ + #include <libft.h> #include <cub3d.h> #include <stdlib.h> static int -ft_w_key(void) + ft_w_key(void) { ft_printf("[W]\n"); return (0); } static int -ft_a_key(void) + ft_a_key(void) { ft_printf("[A]\n"); return (0); } static int -ft_s_key(void) + ft_s_key(void) { ft_printf("[S]\n"); return (0); } static int -ft_d_key(void) + ft_d_key(void) { ft_printf("[D]\n"); return (0); } int -ft_key_event(int keycode, void *param) + ft_key_event(int keycode, void *param) { int (*fun_ptr[4])(void); |