Modifica la gestione dei tasti nella classe GameWindow; aggiungi supporto per il rilascio dei tasti e migliora la logica di scrolling

This commit is contained in:
Matteo Benedetto
2024-12-23 16:23:40 +01:00
parent 3be35d07ee
commit 2e4d0b8726
3 changed files with 27 additions and 21 deletions
+3 -1
View File
@@ -37,4 +37,6 @@ class KeyBindings:
# elif key == "mouse":
# adjusted_coords = (coords[0]//self.cell_size*2, coords[1]//self.cell_size*2)
# self.pointer = adjusted_coords
# self.scroll_cursor()
# self.scroll_cursor()
def key_released(self, key):
self.stop_scrolling()