The latest development version of this page may be more current than this released 4.0.0 version.

zephyr,lvgl-button-input

Vendor: Zephyr-specific binding

Note

An implementation of a driver matching this compatible is available in modules/lvgl/input/lvgl_button_input.c.

Description

LVGL button indev pseudo-device

Listens for button input events and routes the
lv_indev_data_t to the underlying button lv_indev_t managed by LVGL.

Example configuration:

pointer {
        compatible = "zephyr,lvgl-button-input";
        input = <&buttons>;
        input-codes = <INPUT_KEY_0 INPUT_KEY_1>;
        coordinates = <120 220>, <150 250>;
};

When the device receives an input_event with code INPUT_KEY_0
a click event will be performed at (120,220).

Properties

Properties not inherited from the base binding file.

Name

Type

Details

input-codes

array

Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).

This property is required.

coordinates

array

Array of points (x,y) the associated input-code is mapped to.

input

phandle

Input device phandle.