Listen to mouse clicks in the main loop

This commit is contained in:
Yohann D'ANELLO
2020-12-11 18:17:59 +01:00
parent 1afa397fec
commit d9912cacad
2 changed files with 8 additions and 11 deletions

View File

@ -50,10 +50,8 @@ class KeyValues(Enum):
"""
Translate the raw string key into an enum value that we can use.
"""
if key == "KEY_MOUSE":
return KeyValues.MOUSE
elif key in (settings.KEY_DOWN_SECONDARY,
settings.KEY_DOWN_PRIMARY):
if key in (settings.KEY_DOWN_SECONDARY,
settings.KEY_DOWN_PRIMARY):
return KeyValues.DOWN
elif key in (settings.KEY_LEFT_PRIMARY,
settings.KEY_LEFT_SECONDARY):