Some required code mysteriously disappeared
This commit is contained in:
parent
646e0063be
commit
a3e059a97b
|
@ -16,6 +16,7 @@ class DisplayActions(Enum):
|
|||
"""
|
||||
REFRESH = auto()
|
||||
UPDATE = auto()
|
||||
MOUSE = auto()
|
||||
|
||||
|
||||
class GameMode(Enum):
|
||||
|
@ -44,6 +45,7 @@ class KeyValues(Enum):
|
|||
DROP = auto()
|
||||
SPACE = auto()
|
||||
CHAT = auto()
|
||||
WAIT = auto()
|
||||
|
||||
@staticmethod
|
||||
def translate_key(key: str, settings: Settings) -> Optional["KeyValues"]:
|
||||
|
@ -76,4 +78,6 @@ class KeyValues(Enum):
|
|||
return KeyValues.SPACE
|
||||
elif key == settings.KEY_CHAT:
|
||||
return KeyValues.CHAT
|
||||
elif key == settings.KEY_WAIT:
|
||||
return KeyValues.WAIT
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue