From 837e732efda2e26f898f3b054cf58acccaa58b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Fri, 5 Apr 2024 16:01:05 +0500 Subject: [PATCH] Print coordinates when pressing F4 --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index f34aba8..4a2c26a 100755 --- a/main.py +++ b/main.py @@ -83,6 +83,8 @@ def mainLoop(): alert = Alert(f"File saved as {filename}", display) alert_append(alert, 5) + if event.key == pygame.K_F4: + print(gPlayer.cPos) keys = pygame.key.get_pressed() if keys[pygame.K_d]: