Lines Matching +full:lvgl +full:- +full:codes
4 * SPDX-License-Identifier: Apache-2.0
15 LOG_MODULE_DECLARE(lvgl, CONFIG_LV_Z_LOG_LEVEL);
27 struct lvgl_common_input_data *data = dev->data; in lvgl_keypad_process_event()
28 const struct lvgl_keypad_input_config *cfg = dev->config; in lvgl_keypad_process_event()
31 for (i = 0; i < cfg->num_codes; i++) { in lvgl_keypad_process_event()
32 if (evt->code == cfg->input_codes[i]) { in lvgl_keypad_process_event()
33 data->pending_event.key = cfg->lvgl_codes[i]; in lvgl_keypad_process_event()
38 if (i == cfg->num_codes) { in lvgl_keypad_process_event()
39 LOG_WRN("Ignored input event: %u", evt->code); in lvgl_keypad_process_event()
43 data->pending_event.state = evt->value ? LV_INDEV_STATE_PRESSED : LV_INDEV_STATE_RELEASED; in lvgl_keypad_process_event()
44 if (k_msgq_put(cfg->common_config.event_msgq, &data->pending_event, K_NO_WAIT) != 0) { in lvgl_keypad_process_event()
56 "Property input-codes must have the same length as lvgl-codes.");