add access patch from shinoo - and only on 1.8 ecore.

SVN revision: 75991
This commit is contained in:
Carsten Haitzler 2012-09-03 09:42:52 +00:00
parent 5e7a8a0892
commit 5577433927
1 changed files with 21 additions and 1 deletions

View File

@ -343,7 +343,27 @@ _mouse_move(Cover *cov, Ecore_Event_Mouse_Move *ev)
static void
_mouse_wheel(Cover *cov __UNUSED__, Ecore_Event_Mouse_Wheel *ev __UNUSED__)
{
// XXX: fake wheel?
E_Border *bd = e_border_focused_get();
if (!bd) return;
if (ev->z == -1) // up
{
printf("wheel up\n");
#if ECORE_VERSION_MAJOR >= 1
# if ECORE_VERSION_MINOR >= 8
ecore_x_e_illume_access_action_up_send(bd->client.win);
# endif
#endif
}
else if (ev->z == 1) // down
{
printf("wheel down\n");
#if ECORE_VERSION_MAJOR >= 1
# if ECORE_VERSION_MINOR >= 8
ecore_x_e_illume_access_action_down_send(bd->client.win);
# endif
#endif
}
}
static Eina_Bool