<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>
evas_object_color_set(spot, 0, 0, 0, 255);
ad->spots= eina_list_append(ad->spots, spot);
}
+
+static void
+create_event_object(appdata_s *ad)
+{
+ Evas_Object *box;
+ box = elm_box_add(ad->nf);
+ evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(box);
+
+ 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>