1/* 2 * Copyright (c) 2024 Joel Guittet 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/input/input-event-codes.h> 7#include <zephyr/dt-bindings/lvgl/lvgl.h> 8 9/ { 10 lvgl_button_input { 11 compatible = "zephyr,lvgl-button-input"; 12 input = <&buttons>; 13 input-codes = <INPUT_KEY_0>; 14 coordinates = <160 120>; 15 }; 16 17 lvgl_keypad_input { 18 compatible = "zephyr,lvgl-keypad-input"; 19 input = <&joystick>; 20 input-codes = <INPUT_KEY_ENTER INPUT_KEY_DOWN INPUT_KEY_UP INPUT_KEY_LEFT INPUT_KEY_RIGHT>; 21 lvgl-codes = <LV_KEY_ENTER LV_KEY_DOWN LV_KEY_UP LV_KEY_LEFT LV_KEY_RIGHT>; 22 }; 23}; 24