mirror of
https://github.com/jlengrand/korge-samples.git
synced 2026-03-10 08:31:18 +00:00
Fix sample
This commit is contained in:
@@ -95,7 +95,7 @@ class MouseV(val views: Views) {
|
||||
class AudioV(val views: Views) {
|
||||
fun play(sound: Sound, repeat: Int = 0) {
|
||||
val times = (1 + repeat).playbackTimes
|
||||
sound.play(times)
|
||||
sound.play(views.coroutineContext, times)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ fun Views.registerProcessSystem() {
|
||||
MouseEvent.Type.MOVE -> Unit
|
||||
MouseEvent.Type.DRAG -> Unit
|
||||
MouseEvent.Type.UP -> {
|
||||
|
||||
mouseV.pressing[e.button.id] = false
|
||||
mouseV._released[e.button.id] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user