Bind Return key to menus

This commit is contained in:
Yohann D'ANELLO
2020-11-06 18:25:02 +01:00
parent 8d9b5166b7
commit 60d6c7509a
3 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,8 @@ class Game:
elif key in (self.settings.KEY_UP_PRIMARY,
self.settings.KEY_UP_SECONDARY):
return KeyValues.UP
elif key == self.settings.KEY_ENTER:
return KeyValues.ENTER
def handle_key_pressed(self, key: KeyValues) -> None:
if self.state == GameMode.PLAY: