From a1329de937f033a7c2cca35211307e391f1873e4 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 20 May 2025 22:12:17 +0200 Subject: Add logic to get mouse position --- src/main/game/game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/game/game.c') diff --git a/src/main/game/game.c b/src/main/game/game.c index 2bd0bb5..3996cee 100644 --- a/src/main/game/game.c +++ b/src/main/game/game.c @@ -25,9 +25,9 @@ #include "../engine/ui/ui.h" static void -game_mouse_button_pressed(int x, int y) +game_mouse_button_pressed(float x, float y) { - printf("mouse pressed %d %d\n", x, y); + printf("Mouse OpenGL: X = %.2f, Y = %.2f\n", x, y); } TrisGame * -- cgit v1.2.3