1# Copyright (c) 2018-2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
2# Copyright (c) 2020 Teslabs Engineering S.L.
3# SPDX-License-Identifier: Apache-2.0
4
5menu "Input device settings"
6
7config LV_Z_POINTER_KSCAN
8	bool "Keyboard scan pointer input"
9	depends on KSCAN
10	help
11	  Enable keyboard scan pointer input
12
13if LV_Z_POINTER_KSCAN
14
15config LV_Z_POINTER_KSCAN_MSGQ_COUNT
16	int "Keyboard scan message queue count maximum"
17	default 10
18	help
19	  Maximum number of items in the keyboard scan message queue.
20
21config LV_Z_POINTER_KSCAN_SWAP_XY
22	bool "Swap keyboard scan X,Y axes"
23	help
24	  Swap keyboard scan X,Y axes. This option can be used to align keyboard
25	  scan coordinates with the display.
26
27config LV_Z_POINTER_KSCAN_INVERT_X
28	bool "Invert keyboard scan X axis"
29	help
30	  Invert keyboard scan X axis. This option can be used to align keyboard
31	  scan coordinates with the display.
32
33config LV_Z_POINTER_KSCAN_INVERT_Y
34	bool "Invert keyboard scan Y axis"
35	help
36	  Invert keyboard scan Y axis. This option can be used to align keyboard
37	  scan coordinates with the display.
38
39endif # LV_Z_POINTER_KSCAN
40
41config LV_Z_POINTER_INPUT
42	bool "Input lvgl pointer"
43	default y
44	depends on INPUT
45	depends on DT_HAS_ZEPHYR_LVGL_POINTER_INPUT_ENABLED
46
47config LV_Z_POINTER_INPUT_MSGQ_COUNT
48	int "Input pointer queue message count"
49	default 10
50	depends on LV_Z_POINTER_INPUT
51	help
52	  Size of the pointer message queue buffering input events.
53
54config LV_Z_BUTTON_INPUT
55	bool "Input lvgl button"
56	default y
57	depends on INPUT
58	depends on DT_HAS_ZEPHYR_LVGL_BUTTON_INPUT_ENABLED
59
60config LV_Z_BUTTON_INPUT_MSGQ_COUNT
61	int "Input button queue message count"
62	default 4
63	depends on LV_Z_BUTTON_INPUT
64	help
65	  Size of the button message queue buffering input events.
66
67config LV_Z_ENCODER_INPUT
68	bool "Input lvgl encoder"
69	default y
70	depends on INPUT
71	depends on DT_HAS_ZEPHYR_LVGL_ENCODER_INPUT_ENABLED
72
73config LV_Z_ENCODER_INPUT_MSGQ_COUNT
74	int "Input encoder queue message count"
75	default 4
76	depends on LV_Z_ENCODER_INPUT
77	help
78	  Size of the encoder message queue buffering input events.
79
80endmenu
81