We can open an empty inventory!

This commit is contained in:
Yohann D'ANELLO
2020-12-04 14:41:59 +01:00
parent 268e2d0dd2
commit 39af791012
12 changed files with 99 additions and 67 deletions

View File

@ -37,6 +37,7 @@ class KeyValues(Enum):
LEFT = auto()
RIGHT = auto()
ENTER = auto()
INVENTORY = auto()
SPACE = auto()
@staticmethod
@ -58,6 +59,8 @@ class KeyValues(Enum):
return KeyValues.UP
elif key == settings.KEY_ENTER:
return KeyValues.ENTER
elif key == settings.KEY_INVENTORY:
return KeyValues.INVENTORY
elif key == ' ':
return KeyValues.SPACE
return None