aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 17:36:01 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 17:36:01 +0100
commit3a6bed0d03a3e73a6ad2704d1f858174520863c6 (patch)
treed74b4aa36febc25612d8d56eae100dd7a9d1f59f /src/main.c
parentnice (diff)
download42-cub3d-3a6bed0d03a3e73a6ad2704d1f858174520863c6.tar.gz
42-cub3d-3a6bed0d03a3e73a6ad2704d1f858174520863c6.tar.bz2
42-cub3d-3a6bed0d03a3e73a6ad2704d1f858174520863c6.tar.xz
42-cub3d-3a6bed0d03a3e73a6ad2704d1f858174520863c6.tar.zst
42-cub3d-3a6bed0d03a3e73a6ad2704d1f858174520863c6.zip
window now closes
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 16c96ef..05cab80 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,6 +11,7 @@ int
wlist = ft_init_winlist();
clist = ft_init_cublist();
+ mlx_key_hook(wlist->winptr, ft_key_event, wlist);
mlx_loop(wlist->wlx);
ft_memdel(wlist->wlx);
ft_memdel(wlist->winptr);