From c6c4c34917d291414bdd5aa49a607e8d0099e71e Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Tue, 7 Feb 2023 18:25:56 +0900 Subject: [PATCH] input: add DEVICE_INPUT_TYPE_TOUCHSCREEN enum type Add DEVICE_INPUT_TYPE_TOUCHSCREEN type to support touchscreen input device. Change-Id: Ic1afd8a9da915ccca88ede857b59520a7b2f61d7 Signed-off-by: Yunhee Seo --- include/input-internal.h | 1 + src/input-internal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/input-internal.h b/include/input-internal.h index 25b5e0a..c750f19 100644 --- a/include/input-internal.h +++ b/include/input-internal.h @@ -35,6 +35,7 @@ typedef enum DEVICE_INPUT_TYPE_ALL, /**< Input device type which is all kinds of input devices */ DEVICE_INPUT_TYPE_MOUSE, /**< Input device type which is mouse-type */ DEVICE_INPUT_TYPE_KEYBOARD, /**< Input device type which is keyboard-type */ + DEVICE_INPUT_TYPE_TOUCHSCREEN, /**< Input device type which is touchscreen-type */ DEVICE_INPUT_TYPE_CUSTOM_KNOB = 1000, /**< Input device type which is customed knob-type */ } device_input_type_e; diff --git a/src/input-internal.c b/src/input-internal.c index 059ed4e..e4849d4 100644 --- a/src/input-internal.c +++ b/src/input-internal.c @@ -37,6 +37,7 @@ static bool input_is_supported_input_type(device_input_type_e input_device_type) case DEVICE_INPUT_TYPE_ALL: case DEVICE_INPUT_TYPE_MOUSE: case DEVICE_INPUT_TYPE_KEYBOARD: + case DEVICE_INPUT_TYPE_TOUCHSCREEN: case DEVICE_INPUT_TYPE_CUSTOM_KNOB: break; default: -- 2.7.4