static void _cb_device_remove(void *data EINA_UNUSED, struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED, uint32_t serial EINA_UNUSED, const char *identifier EINA_UNUSED, struct tizen_input_device *device EINA_UNUSED, struct wl_seat *seat EINA_UNUSED);
static void _cb_error(void *data EINA_UNUSED, struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED, uint32_t errorcode);
static void _cb_block_expired(void *data EINA_UNUSED, struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED);
+static void _cb_device_info(void *data EINA_UNUSED, struct tizen_input_device *tizen_input_device EINA_UNUSED, const char *name EINA_UNUSED, uint32_t clas EINA_UNUSED, uint32_t subclas EINA_UNUSED, struct wl_array *axes EINA_UNUSED);
+static void _cb_event_device(void *data EINA_UNUSED, struct tizen_input_device *tizen_input_device EINA_UNUSED, unsigned int serial EINA_UNUSED, const char *name EINA_UNUSED, uint32_t time EINA_UNUSED);
+static void _cb_axis(void *data EINA_UNUSED, struct tizen_input_device *tizen_input_device EINA_UNUSED, uint32_t axis_type EINA_UNUSED, wl_fixed_t value EINA_UNUSED);
static const struct wl_registry_listener _wl_reg_listener =
{
_cb_block_expired
};
+struct tizen_input_device_listener _wl_tz_dev_listener =
+{
+ _cb_device_info,
+ _cb_event_device,
+ _cb_axis,
+};
+
struct tizen_display_policy_listener _wl_tz_display_policy_listener =
{
_cb_wl_tz_display_policy_brightness_done,
tizen_input_device_release(data);
_eflutil.wl.devmgr.device_list = eina_list_remove_list(_eflutil.wl.devmgr.device_list, l);
}
+ ecore_wl_sync();
if (_eflutil.wl.devmgr.devicemgr)
tizen_input_device_manager_destroy(_eflutil.wl.devmgr.devicemgr);
_eflutil.wl.devmgr.devicemgr = NULL;
if (_eflutil.wl.queue)
{
- wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue);
wl_event_queue_destroy(_eflutil.wl.queue);
_eflutil.wl.queue = NULL;
}
{
if (device == ddata) return;
}
-
+ tizen_input_device_add_listener(device, &_wl_tz_dev_listener, NULL);
_eflutil.wl.devmgr.device_list = eina_list_append(_eflutil.wl.devmgr.device_list, device);
}
if (device == ddata)
{
_eflutil.wl.devmgr.device_list = eina_list_remove_list(_eflutil.wl.devmgr.device_list, l);
+ tizen_input_device_release(device);
}
}
}
}
/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
+static void
+_cb_device_info(void *data EINA_UNUSED,
+ struct tizen_input_device *tizen_input_device EINA_UNUSED,
+ const char *name EINA_UNUSED, uint32_t clas EINA_UNUSED,
+ uint32_t subclas EINA_UNUSED, struct wl_array *axes EINA_UNUSED)
+{
+ ;
+}
+
+static void
+_cb_event_device(void *data EINA_UNUSED,
+ struct tizen_input_device *tizen_input_device EINA_UNUSED,
+ unsigned int serial EINA_UNUSED,
+ const char *name EINA_UNUSED, uint32_t time EINA_UNUSED)
+{
+ ;
+}
+
+static void
+_cb_axis(void *data EINA_UNUSED,
+ struct tizen_input_device *tizen_input_device EINA_UNUSED,
+ uint32_t axis_type EINA_UNUSED, wl_fixed_t value EINA_UNUSED)
+{
+ ;
+}
+/* LCOV_EXCL_STOP */
+
static efl_util_error_e
_efl_util_input_convert_input_generator_error(int ret)
{