Skip to content

Commit 8220fd3

Browse files
faxe1008nashif
authored andcommitted
modules: lvgl: Prevent false pointer input events
Fixes an issue where input events which have the sync flag set but are neither X/Y coordiante updates nor press/release updates triggers a false reporting of input to LVGL. Signed-off-by: Fabian Blatz <[email protected]> (cherry picked from commit 25d96b2)
1 parent 483124b commit 8220fd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/lvgl/input/lvgl_pointer_input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ static void lvgl_pointer_process_event(const struct device *dev, struct input_ev
5555
data->common_data.pending_event.state =
5656
evt->value ? LV_INDEV_STATE_PR : LV_INDEV_STATE_REL;
5757
break;
58+
default:
59+
return;
5860
}
5961

6062
if (!evt->sync) {

0 commit comments

Comments
 (0)