mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
Keyboard strobing moved to a new thread so that fast typing is possible even if the game's update method is running slowly
This commit is contained in:
@@ -4,11 +4,12 @@ import com.badlogic.gdx.Gdx
|
||||
import com.badlogic.gdx.ScreenAdapter
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera
|
||||
import com.badlogic.gdx.utils.Disposable
|
||||
import net.torvald.terrarum.gamecontroller.TerrarumKeyboardEvent
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
import net.torvald.terrarum.modulebasegame.TerrarumIngame
|
||||
import net.torvald.util.CircularArray
|
||||
|
||||
open class LoadScreenBase : ScreenAdapter(), Disposable {
|
||||
open class LoadScreenBase : ScreenAdapter(), Disposable, TerrarumGamescreen {
|
||||
|
||||
open var preLoadJob: (LoadScreenBase) -> Unit = {}
|
||||
open var screenToLoad: IngameInstance? = null
|
||||
@@ -82,4 +83,7 @@ open class LoadScreenBase : ScreenAdapter(), Disposable {
|
||||
override fun resize(width: Int, height: Int) {
|
||||
initViewPort(App.scr.width, App.scr.height)
|
||||
}
|
||||
|
||||
override fun inputStrobed(e: TerrarumKeyboardEvent) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user