ecore_evas: add ecore_evas_input_event_register_with_multi2 63/152163/2
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 25 Sep 2017 07:22:49 +0000 (16:22 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 25 Sep 2017 08:52:34 +0000 (08:52 +0000)
ecore_evas_input_event_register_with_multi2() will do the same thing as
ecore_evas_input_event_register_with_multi() does except that the former
registers callback(s) that don't consider rotation angle of the given ee.

Change-Id: I0bca07efc329ef77d5964a8bf0ade8e58440edc2
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/lib/ecore_evas/Ecore_Evas.h
src/lib/ecore_evas/ecore_evas.c

index 1b10eef..e9befa0 100755 (executable)
@@ -2893,6 +2893,22 @@ EAPI void        ecore_evas_input_event_register(Ecore_Evas *ee);
 EAPI void        ecore_evas_input_event_register_with_multi(Ecore_Evas *ee);
 //
 
+// TIZEN_ONLY(20170925): add multi_info(radius, pressure and angle) to Evas_Event_Mouse_XXX
+/**
+ * @brief Registers an @c Ecore_Evas to receive events through ecore_input_evas.
+ *
+ * @param ee The @c Ecore_Evas handle.
+ *
+ * This function calls ecore_event_window_register_with_multi() with the @p ee as its @c
+ * id argument, @c window argument, and uses its @c Evas too. It is useful when
+ * no @c window information is available on a given @c Ecore_Evas backend.
+ *
+ * @see ecore_evas_input_event_unregister()
+ * @since 1.1
+ */
+EAPI void        ecore_evas_input_event_register_with_multi2(Ecore_Evas *ee);
+//
+
 /**
  * @brief Unregisters an @c Ecore_Evas receiving events through ecore_input_evas.
  *
index 10a9ff2..e6875b7 100644 (file)
@@ -3804,6 +3804,18 @@ ecore_evas_input_event_register_with_multi(Ecore_Evas *ee)
 }
 //
 
+// TIZEN_ONLY(20170925): add multi_info(radius, pressure and angle) to Evas_Event_Mouse_XXX
+EAPI void
+ecore_evas_input_event_register_with_multi2(Ecore_Evas *ee)
+{
+   ecore_event_window_register_with_multi((Ecore_Window)ee->prop.window, ee, ee->evas,
+                                          (Ecore_Event_Mouse_Move_With_Multi_Cb)_ecore_evas_mouse_move_with_multi_info_process2,
+                                          (Ecore_Event_Multi_Move_Cb)_ecore_evas_mouse_multi_move_process2,
+                                          (Ecore_Event_Multi_Down_Cb)_ecore_evas_mouse_multi_down_process2,
+                                          (Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process2);
+}
+//
+
 EAPI void
 ecore_evas_input_event_unregister(Ecore_Evas *ee)
 {