net.peanuuutz.fork.ui.scene.base.DefaultTextInputDispatcher.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fork-ui Show documentation
Show all versions of fork-ui Show documentation
Comprehensive API designed for Minecraft modders
The newest version!
package net.peanuuutz.fork.ui.scene.base
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableSharedFlow
import net.peanuuutz.fork.ui.ui.context.text.TextInputDispatcher
import net.peanuuutz.fork.ui.ui.context.text.TextInputEvent
class DefaultTextInputDispatcher : TextInputDispatcher {
override val input: MutableSharedFlow = MutableSharedFlow(
extraBufferCapacity = 1024,
onBufferOverflow = BufferOverflow.DROP_OLDEST
)
}