somehow fixed a consolewin bug

- It would read a key even if it's closed
This commit is contained in:
minjaesong
2017-10-18 03:52:11 +09:00
parent 06db25fb1a
commit 0004240c52
6 changed files with 98 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ class IngameController(val ingame: Ingame) : InputAdapter() {
}
override fun keyTyped(character: Char): Boolean {
ingame.uiContainer.forEach { it.keyTyped(character) }
ingame.uiContainer.forEach { if (it.isVisible) it.keyTyped(character) }
return true
}