DEADSOFTWARE

Better touch inventory controls
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / input / handler / keyboard / OpenInventoryKeyboardInputHandler.kt
index 50aa5b01b5d6677865d350b61574449ecae1ebf0..ce7005408993aa621528c48a280ad77e4864b29f 100644 (file)
@@ -17,7 +17,7 @@ class OpenInventoryKeyboardInputHandler @Inject constructor(
 
     override fun checkConditions(action: KeyboardInputAction): Boolean {
         return action.actionKey is KeyboardInputActionKey.OpenInventory &&
-                action.isKeyDown && gameWindowsManager.getCurrentWindow() == GameUiWindow.NONE
+                !action.isKeyDown && gameWindowsManager.getCurrentWindow() == GameUiWindow.NONE
     }
 
     override fun handle(action: KeyboardInputAction) {