InputDeviceDriver

expect class InputDeviceDriver : Closable

Represents an input device driver, which could be a Touchscreen, Mouse etc.

actual class InputDeviceDriver : Closable
actual class InputDeviceDriver : Closable

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

close
Link copied to clipboard
abstract fun close()
open override fun close()
open override fun close()
Link copied to clipboard
expect fun readInputDevice(data: InputDeviceData)

Reads the input device.

actual fun readInputDevice(data: InputDeviceData)
actual fun readInputDevice(data: InputDeviceData)
Link copied to clipboard
expect fun register(): InputDevice

Registers the InputDeviceDriver.

actual fun register(): InputDevice
actual fun register(): InputDevice

Properties

Link copied to clipboard
val lvIndevDrvPtr: CPointer<lv_indev_drv_t>?
Link copied to clipboard
val lvIndevDrvPtr: CPointer<lv_indev_drv_t>?
Link copied to clipboard
expect var onRead: (driver: InputDeviceDriver, data: InputDeviceData) -> Unit

Handles the read event when data has been read from an input device.

actual var onRead: (driver: InputDeviceDriver, data: InputDeviceData) -> Unit
actual var onRead: (driver: InputDeviceDriver, data: InputDeviceData) -> Unit
Link copied to clipboard
var type: lv_indev_type_t

Input device type (eg LV_INDEV_TYPE_POINTER).

Link copied to clipboard
var type: lv_indev_type_t

Input device type (eg LV_INDEV_TYPE_POINTER).