ev->multi.y = input->sy;
ev->multi.root.x = input->sx;
ev->multi.root.y = input->sy;
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if ((down_info = _ecore_wl_mouse_down_info_get(device)))
{
ev->y = input->sy;
ev->modifiers = input->modifiers;
ev->timestamp = timestamp;
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if (win)
{
ev->y = input->sy;
ev->modifiers = input->modifiers;
ev->timestamp = timestamp;
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if (win)
{
ev->multi.y = input->sy;
ev->multi.root.x = input->sx;
ev->multi.root.y = input->sy;
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if (win)
{
ev->multi.angle = 0.0;
ev->multi.root.x = input->sx;
ev->multi.root.y = input->sy;
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if (device < ECORE_WL_TOUCH_MAX)
{
ev->y = input->sy;
/* ev->root.x = input->sx; */
/* ev->root.y = input->sy; */
- ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, ECORE_DEVICE_CLASS_MOUSE);
+ ev->dev = _ecore_wl_input_get_ecore_device(input->last_device_name, input->last_device_class);
if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL)
{
if (!(dev = data)) return;
if (!dev->identifier) return;
eina_stringshare_replace(&input->last_device_name, dev->identifier);
+ input->last_device_class = _ecore_wl_input_cap_to_ecore_device_class(dev->clas);
return;
}