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;