KeyValues.translate_key returns a KeyValues object

This commit is contained in:
Yohann D'ANELLO
2020-11-11 22:47:51 +01:00
parent edecb7eb90
commit cde0b19c72
3 changed files with 20 additions and 21 deletions

View File

@ -54,7 +54,7 @@ class Game:
self.display_refresh()
key = screen.getkey()
self.handle_key_pressed(
*KeyValues.translate_key(key, self.settings))
KeyValues.translate_key(key, self.settings), key)
def handle_key_pressed(self, key: Optional[KeyValues], raw_key: str = '')\
-> None: