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