mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
still working on vt, still buggy :/
Former-commit-id: 9164ca8ef33917f7254c65f3947903b8a17dd654 Former-commit-id: 3ebf64f00a0b86d11a449c1d399e149f2714839c
This commit is contained in:
@@ -59,16 +59,6 @@ class StateVTTest : BasicGameState() {
|
||||
}
|
||||
|
||||
override fun keyPressed(key: Int, c: Char) {
|
||||
super.keyPressed(key, c)
|
||||
vt.keyPressed(key, c)
|
||||
|
||||
if (!computerInside.isHalted) {
|
||||
if (key == Key.RETURN && computerInside.luaJ_globals["__scanMode__"].checkjstring() == "line") {
|
||||
vt.closeInputString() // cut input by pressing Key.RETURN
|
||||
}
|
||||
else if (computerInside.luaJ_globals["__scanMode__"].checkjstring() == "a_key") {
|
||||
vt.closeInputKey(key) // cut input by pressing any key
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user