/ minilibx-linux / mlx_key_hook.c
mlx_key_hook.c
1 /* 2 ** mlx_key_hook.c for MiniLibX in 3 ** 4 ** Made by Charlie Root 5 ** Login <ol@epitech.net> 6 ** 7 ** Started on Thu Aug 3 11:49:06 2000 Charlie Root 8 ** Last update Fri Feb 23 17:10:09 2001 Charlie Root 9 */ 10 11 12 #include "mlx_int.h" 13 14 15 16 17 int mlx_key_hook(t_win_list *win,int (*funct)(),void *param) 18 { 19 win->hooks[KeyRelease].hook = funct; 20 win->hooks[KeyRelease].param = param; 21 win->hooks[KeyRelease].mask = KeyReleaseMask; 22 }