[Tizen 2.4][Native API doc] add multi touch point description
authorJi-Youn Park <jy0703.park@samsung.com>
Tue, 8 Sep 2015 07:30:03 +0000 (16:00 +0830)
committerJi-Youn Park <jy0703.park@samsung.com>
Tue, 8 Sep 2015 08:24:32 +0000 (16:54 +0830)
Change-Id: I4f3a26c822451fd12c5af64e7a4c0a21e3513553
Signed-off-by: Jiyoun Park <jy0703.park@samsung.com>
org.tizen.ui.practices/html/native/efl/multipoint_touch_n.htm

index 9289034..67163b7 100644 (file)
@@ -203,7 +203,7 @@ button_clicked_cb(void *data, Evas *evas, Evas_Object *object, void *event_info)
  <h2 id="touch" name="touch">Managing Touch Events</h2>
 
 <p>On the bottom of the <span style="font-family: Courier New,Courier,monospace">create_main_view()</span> function, event callbacks are added to the event rectangle. An event callback is added using the <span style="font-family: Courier New,Courier,monospace">evas_object_event_callback_add()</span> function.</p>
-
+<p>Event types for touch event contain "MOUSE" keyword because of backward compatibilty of Tizen 2.3. Before introducing multi touch concept, there is no difference between single touch event and mouse event. So single touch event used EVAS_CALLBACK_MOUSE_DOWN/UP/MOVE event types.</p>
 <p>The following touch event types are supported:</p>
 <ul>
 <li><span style="font-family: Courier New,Courier,monospace">EVAS_CALLBACK_MOUSE_DOWN</span>: This event is called when the given object receives the mouse down event.</li>
@@ -238,6 +238,17 @@ mousemove_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 &nbsp;&nbsp;&nbsp;evas_object_color_set(spot, 0, 0, 0, 255);
 &nbsp;&nbsp;&nbsp;ad-&gt;spots= eina_list_append(ad-&gt;spots, spot);
 }
+
+static void
+create_event_object(appdata_s *ad)
+{
+&nbsp;&nbsp;&nbsp;Evas_Object *box;
+&nbsp;&nbsp;&nbsp;box = elm_box_add(ad->nf);
+&nbsp;&nbsp;&nbsp;evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+&nbsp;&nbsp;&nbsp;evas_object_show(box);
+
+&nbsp;&nbsp;&nbsp;evas_object_event_callback_add(box, EVAS_CALLBACK_MOUSE_MOVE, mousemove_cb, ad);
+}
 </pre>
 
 <script type="text/javascript" src="../../scripts/jquery.zclip.min.js"></script>