mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
fixd a bug where HUD will draw on top of console window
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user