summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-09 21:04:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-10 14:42:08 +0900
commitd4b4ee867be2819eea69ec7b92cd2843ae33c7c7 (patch)
treeb769a298dbae95ca3fdb773d7311470420a79b03 /src/lib/ecore_evas/ecore_evas.c
parentb2dc2274e803fd0bf18dc7c17996a8753cb0058d (diff)
evas: Modify wheel events direction to bool (EO)
The orientation was overkill here. We only want a bool. Ref T5870
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index e4c8001..127b945 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -4778,7 +4778,7 @@ _direct_mouse_wheel_cb(Ecore_Evas *ee, const Ecore_Event_Mouse_Wheel *info)
4778 ev->timestamp = info->timestamp; 4778 ev->timestamp = info->timestamp;
4779 _pointer_position_set(ev, ee, info->x, info->y, info->x, info->y); 4779 _pointer_position_set(ev, ee, info->x, info->y, info->x, info->y);
4780 ev->wheel.z = info->z; 4780 ev->wheel.z = info->z;
4781 ev->wheel.dir = info->direction ? EFL_ORIENT_HORIZONTAL : EFL_ORIENT_VERTICAL; 4781 ev->wheel.horizontal = !!info->direction;
4782 if (info->dev) ev->device = efl_ref(info->dev); 4782 if (info->dev) ev->device = efl_ref(info->dev);
4783 else ev->device = efl_ref(evas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_MOUSE)); 4783 else ev->device = efl_ref(evas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_MOUSE));
4784 efl_input_pointer_finalize(evt); 4784 efl_input_pointer_finalize(evt);