mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
No right-click on Android (#5125)
This commit is contained in:
parent
4cfdfee301
commit
1785c1f78e
@ -85,6 +85,9 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
|
|||||||
}
|
}
|
||||||
tileGroup.onClick { onTileClicked(tileGroup.tileInfo) }
|
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
|
// Right mouse click listener
|
||||||
tileGroup.addListener(object : ClickListener() {
|
tileGroup.addListener(object : ClickListener() {
|
||||||
init {
|
init {
|
||||||
@ -93,7 +96,7 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
|
|||||||
|
|
||||||
override fun clicked(event: InputEvent?, x: Float, y: Float) {
|
override fun clicked(event: InputEvent?, x: Float, y: Float) {
|
||||||
val unit = worldScreen.bottomUnitTable.selectedUnit
|
val unit = worldScreen.bottomUnitTable.selectedUnit
|
||||||
if (unit == null) return
|
?: return
|
||||||
thread {
|
thread {
|
||||||
val tile = tileGroup.tileInfo
|
val tile = tileGroup.tileInfo
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user