Files
zephyr/modules/lvgl/Kconfig.input
Fabian Blatz 36c673f5f9 modules: lvgl: Add LV_Z_POINTER_FROM_CHOSEN_TOUCH option
Adds a Kconfig option LV_Z_POINTER_FROM_CHOSEN_TOUCH which automatically
creates a lvgl input pointer device from the chosen zephyr,touch node.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-12-02 11:31:07 +01:00

82 lines
2.2 KiB
Plaintext

# Copyright (c) 2018-2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
# Copyright (c) 2020 Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
menu "Input device settings"
DT_CHOSEN_Z_TOUCH := zephyr,touch
DT_CHOSEN_Z_DISPLAY := zephyr,display
config LV_Z_POINTER_FROM_CHOSEN_TOUCH
bool "Create LVGL pointer from DT 'zephyr,touch' chosen device"
depends on INPUT
depends on $(dt_chosen_enabled,$(DT_CHOSEN_Z_TOUCH))
default y if !DT_HAS_ZEPHYR_LVGL_POINTER_INPUT_ENABLED
help
Enable creation of LVGL pointer input device
based on 'zephyr,touch' chosen property in devicetree.
config LV_Z_POINTER_FROM_CHOSEN_TOUCH_INFER_DISPLAY
bool "Link input pointer to chosen display"
depends on LV_Z_POINTER_FROM_CHOSEN_TOUCH
depends on $(dt_chosen_enabled,$(DT_CHOSEN_Z_DISPLAY))
default y
help
Process input events of the pointer device created
from the 'zephyr,touch' chosen property and link it to the
'zephyr,display' chosen device.
config LV_Z_POINTER_INPUT
bool "Input lvgl pointer"
default y
depends on INPUT
depends on DT_HAS_ZEPHYR_LVGL_POINTER_INPUT_ENABLED || LV_Z_POINTER_FROM_CHOSEN_TOUCH
config LV_Z_POINTER_INPUT_MSGQ_COUNT
int "Input pointer queue message count"
default 10
depends on LV_Z_POINTER_INPUT
help
Size of the pointer message queue buffering input events.
config LV_Z_BUTTON_INPUT
bool "Input lvgl button"
default y
depends on INPUT
depends on DT_HAS_ZEPHYR_LVGL_BUTTON_INPUT_ENABLED
config LV_Z_BUTTON_INPUT_MSGQ_COUNT
int "Input button queue message count"
default 4
depends on LV_Z_BUTTON_INPUT
help
Size of the button message queue buffering input events.
config LV_Z_ENCODER_INPUT
bool "Input lvgl encoder"
default y
depends on INPUT
depends on DT_HAS_ZEPHYR_LVGL_ENCODER_INPUT_ENABLED
config LV_Z_ENCODER_INPUT_MSGQ_COUNT
int "Input encoder queue message count"
default 4
depends on LV_Z_ENCODER_INPUT
help
Size of the encoder message queue buffering input events.
config LV_Z_KEYPAD_INPUT
bool "Input lvgl keypad"
default y
depends on INPUT
depends on DT_HAS_ZEPHYR_LVGL_KEYPAD_INPUT_ENABLED
config LV_Z_KEYPAD_INPUT_MSGQ_COUNT
int "Input keypad queue message count"
default 4
depends on LV_Z_KEYPAD_INPUT
help
Size of the keypad message queue buffering input events.
endmenu