mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
btex: finally working <a> tag
This commit is contained in:
@@ -3,6 +3,8 @@ package net.torvald.terrarum.tests
|
||||
import com.badlogic.gdx.ApplicationAdapter
|
||||
import com.badlogic.gdx.Gdx
|
||||
import com.badlogic.gdx.Input
|
||||
import com.badlogic.gdx.InputAdapter
|
||||
import com.badlogic.gdx.InputProcessor
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
|
||||
import com.badlogic.gdx.graphics.Color
|
||||
@@ -106,6 +108,21 @@ class BTeXTest : ApplicationAdapter() {
|
||||
println("Time spent on loading [ms]: $it")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Gdx.input.inputProcessor = object : InputAdapter() {
|
||||
override fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
|
||||
if (::viewer.isInitialized)
|
||||
viewer.touchDown(screenX, screenY, pointer, button)
|
||||
return true
|
||||
}
|
||||
|
||||
override fun touchUp(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
|
||||
if (::viewer.isInitialized)
|
||||
viewer.touchUp(screenX, screenY, pointer, button)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var init = false
|
||||
|
||||
Reference in New Issue
Block a user