input: add getter/setter for controlling input device event 68/285668/1 accepted/tizen/7.0/unified/20221220.180244
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 13 Dec 2022 02:40:24 +0000 (11:40 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 16 Dec 2022 07:03:02 +0000 (16:03 +0900)
commit12573888a04a7ed5d32fc04be9aa724093cacc2f
tree084cb53bb68689e4dbe873911bb383d6f574c333
parent77e52f61816d1453212552abd8954585d7889cd5
input: add getter/setter for controlling input device event

Add a getter and setter function of input device event status

These are function prototype to be added.
int device_input_set_event_state(int input_device_id, bool on);
int device_input_get_event_state(int input_device_id, bool *on);
With input_device_id parameter, it is possible to enable/disable event of input device.

This enum is a structure for managing input devices
by distinguishing input device types.
To get input_device_id number, these input types will be used.
typedef enum
{
DEVICE_INPUT_TYPE_UNKNOWN = 0, /**< Input device type which is not defined. */
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_CUSTOM_KNOB, /**< Input device type which is customed knob-type */
} device_input_type_e;

Change-Id: Idd6eec3bf0226bd8f0a156e0ac1c7be13f03aa15
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
include/input-internal.h [new file with mode: 0644]
src/input-internal.c [new file with mode: 0644]