From da5f45a32efee4217397b331619cb2352940f7bf Mon Sep 17 00:00:00 2001 From: mcolonna Date: Thu, 21 Nov 2024 16:21:44 +0100 Subject: [PATCH] norm --- include/const.h | 2 +- src/input_utils.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/const.h b/include/const.h index 6accd5f..38fe110 100644 --- a/include/const.h +++ b/include/const.h @@ -19,7 +19,7 @@ # define FPS 30 // Number of frames per second (bonus only) # define NOBONUS_SPEED 500 // Number of calls to timedloop for one frame - // (mandatory only) +// (mandatory only) # define MOVE_SPEED 0.1 // Player oves by N cases by tick # define ROT_SPEED_DIVIDE_PI 32 // Player turns by pi/N rad by tick diff --git a/src/input_utils.c b/src/input_utils.c index 814f2df..ae3f6dd 100644 --- a/src/input_utils.c +++ b/src/input_utils.c @@ -40,6 +40,7 @@ int hook_buttonpress(int button) { static const t_point_int window_middle = { SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2}; + if (button == Button1) { g_intercept_mouse = !g_intercept_mouse;