{
if (data->type == ECORE_EVENT_MOUSE_BUTTON_DOWN)
{
- ecore_event_evas_mouse_button_down(NULL, ECORE_EVENT_MOUSE_BUTTON_DOWN, data->event);
+ if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+ ecore_event_evas_mouse_button_down(NULL, ECORE_EVENT_MOUSE_BUTTON_DOWN, data->event);
}
else if (data->type == ECORE_EVENT_MOUSE_BUTTON_UP)
{
- ecore_event_evas_mouse_button_up(NULL, ECORE_EVENT_MOUSE_BUTTON_UP, data->event);
+ if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+ ecore_event_evas_mouse_button_up(NULL, ECORE_EVENT_MOUSE_BUTTON_UP, data->event);
}
else if (data->type == ECORE_EVENT_MOUSE_MOVE)
{
- ecore_event_evas_mouse_move(NULL, ECORE_EVENT_MOUSE_MOVE, data->event);
+ if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+ ecore_event_evas_mouse_move(NULL, ECORE_EVENT_MOUSE_MOVE, data->event);
}
else if (data->type == ECORE_EVENT_KEY_DOWN)
{
- ecore_event_evas_key_down(NULL, ECORE_EVENT_KEY_DOWN, data->event);
+ if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_KEYBOARD))
+ ecore_event_evas_key_down(NULL, ECORE_EVENT_KEY_DOWN, data->event);
}
else if (data->type == ECORE_EVENT_KEY_UP)
{
- ecore_event_evas_key_up(NULL, ECORE_EVENT_KEY_UP, data->event);
+ if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_KEYBOARD))
+ ecore_event_evas_key_up(NULL, ECORE_EVENT_KEY_UP, data->event);
}
E_FREE(data->event);
E_FREE(data);