No right-click on Android (#5125)

This commit is contained in:
SomeTroglodyte 2021-09-08 20:13:43 +02:00 committed by GitHub
parent 4cfdfee301
commit 1785c1f78e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,9 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
}
tileGroup.onClick { onTileClicked(tileGroup.tileInfo) }
// On 'droid two-finger tap is mapped to right click and dissent has been expressed
if (Gdx.app.type == Application.ApplicationType.Android) continue
// Right mouse click listener
tileGroup.addListener(object : ClickListener() {
init {
@ -93,7 +96,7 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
override fun clicked(event: InputEvent?, x: Float, y: Float) {
val unit = worldScreen.bottomUnitTable.selectedUnit
if (unit == null) return
?: return
thread {
val tile = tileGroup.tileInfo