fixd a bug where HUD will draw on top of console window

This commit is contained in:
minjaesong
2019-08-19 02:05:00 +09:00
parent 89746c3b6e
commit 9e775d9d57
5 changed files with 15 additions and 8 deletions

View File

@@ -2,7 +2,6 @@ package net.torvald.terrarum.gamecontroller
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.Input
import net.torvald.terrarum.AppLoader.printdbg
import net.torvald.util.sortedArrayListOf
import java.util.*
@@ -36,9 +35,6 @@ object KeyToggler {
fun update(toggleGameKeys: Boolean) {
for (it in 0..255) {
if (!toggleGameKeys && gameKeys.contains(it)) {
if (Gdx.input.isKeyPressed(it))
printdbg(this, "Disallowed key: $it")
continue
}