1# Copyright 2023 Fabian Blatz <fabianblatz@gmail.com> 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 LVGL button indev pseudo-device 6 7 Listens for button input events and routes the 8 lv_indev_data_t to the underlying button lv_indev_t managed by LVGL. 9 10 Example configuration: 11 12 pointer { 13 compatible = "zephyr,lvgl-button-input"; 14 input = <&buttons>; 15 input-codes = <INPUT_KEY_0 INPUT_KEY_1>; 16 coordinates = <120 220>, <150 250>; 17 }; 18 19 When the device receives an input_event with code INPUT_KEY_0 20 a click event will be performed at (120,220). 21 22compatible: "zephyr,lvgl-button-input" 23 24include: zephyr,lvgl-common-input.yaml 25 26properties: 27 input-codes: 28 type: array 29 required: true 30 description: | 31 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*). 32 33 coordinates: 34 type: array 35 description: | 36 Array of points (x,y) the associated input-code is mapped to. 37