Browse Source

Aggiorna la gestione dei tasti rilasciati nella classe KeyBindings per includere tasti aggiuntivi

master
Matteo Benedetto 1 year ago
parent
commit
f473265df7
  1. 2
      engine/controls.py

2
engine/controls.py

@ -37,7 +37,7 @@ class KeyBindings:
# self.pointer = adjusted_coords # self.pointer = adjusted_coords
# self.scroll_cursor() # self.scroll_cursor()
def key_released(self, key): def key_released(self, key):
if key in ["Up", "Down", "Left", "Right"]: if key in ["Up", "Down", "Left", "Right", 8, 9, 10, 11]:
self.stop_scrolling() self.stop_scrolling()
def start_scrolling(self, direction): def start_scrolling(self, direction):

Loading…
Cancel
Save