#include "e_devicemgr_private.h"
+static Ecore_Device_Class
+_e_devicemgr_inputgen_class_to_ecore_device_class(unsigned int clas)
+{
+ switch(clas)
+ {
+ case TIZEN_INPUT_DEVICE_MANAGER_CLAS_MOUSE:
+ return ECORE_DEVICE_CLASS_MOUSE;
+ case TIZEN_INPUT_DEVICE_MANAGER_CLAS_KEYBOARD:
+ return ECORE_DEVICE_CLASS_KEYBOARD;
+ case TIZEN_INPUT_DEVICE_MANAGER_CLAS_TOUCHSCREEN:
+ return ECORE_DEVICE_CLASS_TOUCH;
+ default:
+ return ECORE_DEVICE_CLASS_NONE;
+ }
+}
+
static Eina_List **
_e_devicemgr_inputgen_list_get(Ecore_Device_Class clas)
{
E_Devicemgr_Inputgen_Client_Data *cdata;
E_Devicemgr_Inputgen_Device_Data *ddata;
Eina_List *l, *ll, *l_next, *ll_next, **list;
+ Ecore_Device_Class eclas = ECORE_DEVICE_CLASS_NONE;
- list = _e_devicemgr_inputgen_list_get(clas);
+ eclas = _e_devicemgr_inputgen_class_to_ecore_device_class(clas);
+ list = _e_devicemgr_inputgen_list_get(eclas);
EINA_SAFETY_ON_NULL_RETURN(list);
EINA_LIST_FOREACH_SAFE(*list, l, l_next, ddata)