mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -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) }
|
||||
|
||||
// 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user