From 5577433927d0d8dcc032e11824c53c3ae74f3f15 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 3 Sep 2012 09:42:52 +0000 Subject: [PATCH] add access patch from shinoo - and only on 1.8 ecore. SVN revision: 75991 --- src/modules/access/e_mod_main.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/modules/access/e_mod_main.c b/src/modules/access/e_mod_main.c index b12fc89b7..3177837a9 100644 --- a/src/modules/access/e_mod_main.c +++ b/src/modules/access/e_mod_main.c @@ -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