Use a key to use ladders

This commit is contained in:
Yohann D'ANELLO
2021-01-06 14:55:16 +01:00
parent 663fc0eecd
commit d06a405120
7 changed files with 136 additions and 116 deletions

View File

@ -47,6 +47,7 @@ class KeyValues(Enum):
SPACE = auto()
CHAT = auto()
WAIT = auto()
LADDER = auto()
@staticmethod
def translate_key(key: str, settings: Settings) -> Optional["KeyValues"]:
@ -81,4 +82,6 @@ class KeyValues(Enum):
return KeyValues.CHAT
elif key == settings.KEY_WAIT:
return KeyValues.WAIT
elif key == settings.KEY_LADDER:
return KeyValues.LADDER
return None