diff options
author | 2025-05-20 22:12:17 +0200 | |
---|---|---|
committer | 2025-05-20 22:12:17 +0200 | |
commit | a1329de937f033a7c2cca35211307e391f1873e4 (patch) | |
tree | 22d000ebba7394750cb25915599d6bd1eb44a94b /src/main/game | |
parent | 693d830f69b9a4ce6f956f4a688f41180156473e (diff) | |
download | tris-a1329de937f033a7c2cca35211307e391f1873e4.tar.gz tris-a1329de937f033a7c2cca35211307e391f1873e4.zip |
Add logic to get mouse position
Diffstat (limited to 'src/main/game')
-rw-r--r-- | src/main/game/game.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 * |