23 lines
628 B
Kotlin
23 lines
628 B
Kotlin
package net.mezimmah.wkt9.inputmode
|
|
|
|
import net.mezimmah.wkt9.keypad.Key
|
|
import net.mezimmah.wkt9.keypad.KeyEventResult
|
|
|
|
interface InputMode {
|
|
val mode: String
|
|
val status: Status
|
|
|
|
fun onKeyDown(key: Key, composing: Boolean): KeyEventResult
|
|
|
|
fun onKeyLongDown(key: Key, composing: Boolean): KeyEventResult
|
|
|
|
fun onKeyDownRepeatedly(key: Key, repeat: Int, composing: Boolean): KeyEventResult
|
|
|
|
fun afterKeyDown(key: Key, composing: Boolean): KeyEventResult
|
|
|
|
fun afterKeyLongDown(key: Key, keyDownMS: Long, composing: Boolean): KeyEventResult
|
|
|
|
fun packageName(packageName: String)
|
|
|
|
fun restart()
|
|
} |