mirror of
https://github.com/jlengrand/korge-samples.git
synced 2026-03-10 08:31:18 +00:00
Update sample input to display last event
This commit is contained in:
@@ -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}" }
|
||||
}
|
||||
}
|
||||
|
||||
BIN
sample/input/src/commonMain/resources/korge.png
Normal file
BIN
sample/input/src/commonMain/resources/korge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user