diff --git a/src/input_utils.c b/src/input_utils.c index 1e8e415..59ebd65 100644 --- a/src/input_utils.c +++ b/src/input_utils.c @@ -6,13 +6,17 @@ /* By: mc +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/07 19:02:04 by mc #+# #+# */ -/* Updated: 2024/11/07 19:02:15 by mc ### ########.fr */ +/* Updated: 2024/11/07 19:24:05 by mc ### ########.fr */ /* */ /* ************************************************************************** */ #include "input_utils.h" -static int hook_mousemove(int x, int y) +#include "const.h" +#include "utils.h" +#include "global.h" + +int hook_mousemove(int x, int y) { static const t_point_int window_middle = { SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2}; diff --git a/src/input_utils.h b/src/input_utils.h index 0006b00..1abf508 100644 --- a/src/input_utils.h +++ b/src/input_utils.h @@ -6,7 +6,7 @@ /* By: mc +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/07 19:02:26 by mc #+# #+# */ -/* Updated: 2024/11/07 19:03:02 by mc ### ########.fr */ +/* Updated: 2024/11/07 19:22:55 by mc ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,6 +15,6 @@ # include "input.h" -static int hook_mousemove(int x, int y); +int hook_mousemove(int x, int y); #endif