Update sample input to display last event

This commit is contained in:
soywiz
2021-02-06 23:45:13 +01:00
parent 2e1022b93a
commit 9998b882d3
2 changed files with 4 additions and 4 deletions

View File

@@ -46,9 +46,9 @@ suspend fun main() = Korge {
}
mouse {
onMove { mouseMoveText.text = "Mouse:Move ${nowTime()} $it" }
onDown { mouseDownText.text = "Mouse:Down ${nowTime()} $it" }
onUp { mouseUpText.text = "Mouse:Up ${nowTime()} $it" }
onClick { mouseClickText.text = "Mouse:Click ${nowTime()} $it" }
onMove { mouseMoveText.text = "Mouse:Move ${nowTime()} ${it.lastEvent}" }
onDown { mouseDownText.text = "Mouse:Down ${nowTime()} ${it.lastEvent}" }
onUp { mouseUpText.text = "Mouse:Up ${nowTime()} ${it.lastEvent}" }
onClick { mouseClickText.text = "Mouse:Click ${nowTime()} ${it.lastEvent}" }
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB