Package io.gitlab.embedSoft.lvglKt.drivers.input

Types

Link copied to clipboard
expect class InputDevice

Represents an input device (Mouse, Touchscreen etc).

actual class InputDevice
actual class InputDevice
Link copied to clipboard
expect class InputDeviceData

Contains data for the input device.

actual class InputDeviceData
actual class InputDeviceData
Link copied to clipboard
expect class InputDeviceDriver : Closable

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

actual class InputDeviceDriver : Closable
actual class InputDeviceDriver : Closable

Functions

Link copied to clipboard
expect fun initEvdev()

Initializes the Evdev system (part of the Linux Kernel) to ensure input devices can be used.

actual fun initEvdev()
actual fun initEvdev()
Link copied to clipboard
expect fun setupMouse(cursorImg: String): Pair<InputDeviceDriver, InputDevice>

Sets up the Mouse to be used as an input device.

actual fun setupMouse(cursorImg: String): Pair<InputDeviceDriver, InputDevice>
actual fun setupMouse(cursorImg: String): Pair<InputDeviceDriver, InputDevice>
Link copied to clipboard
expect fun setupTouchScreen(): Pair<InputDeviceDriver, InputDevice>

Sets up the Touch Screen as an input device.

actual fun setupTouchScreen(): Pair<InputDeviceDriver, InputDevice>
actual fun setupTouchScreen(): Pair<InputDeviceDriver, InputDevice>
toInputDevice
Link copied to clipboard
fun CPointer<lv_indev_t>?.toInputDevice(): InputDevice
fun CPointer<lv_indev_t>?.toInputDevice(): InputDevice
toInputDeviceData
Link copied to clipboard
fun CPointer<lv_indev_data_t>?.toInputDeviceData(): InputDeviceData
fun CPointer<lv_indev_data_t>?.toInputDeviceData(): InputDeviceData
toInputDeviceDriver
Link copied to clipboard
fun CPointer<lv_indev_drv_t>?.toInputDeviceDriver(): InputDeviceDriver
fun CPointer<lv_indev_drv_t>?.toInputDeviceDriver(): InputDeviceDriver