/ minilibx-linux / mlx_mouse_hook.c
mlx_mouse_hook.c
 1  /*
 2  ** mlx_mouse_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:11:05 2001 Charlie Root
 9  */
10  
11  
12  #include	"mlx_int.h"
13  
14  
15  
16  
17  int		mlx_mouse_hook(t_win_list *win,int (*funct)(),void *param)
18  {
19    win->hooks[ButtonPress].hook = funct;
20    win->hooks[ButtonPress].param = param;
21    win->hooks[ButtonPress].mask = ButtonPressMask;
22  }