Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas
Modified Files:
evas_events.c
Log Message:
add a cancel to all mouse butotn presses
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_events.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- evas_events.c 1 May 2008 05:48:03 -0000 1.59
+++ evas_events.c 19 May 2008 04:15:22 -0000 1.60
@@ -431,6 +431,32 @@
*
*/
EAPI void
+evas_event_feed_mouse_cancel(Evas *e, unsigned int timestamp, const void *data)
+{
+ int i;
+
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ return;
+ MAGIC_CHECK_END();
+
+ if (e->events_frozen > 0) return;
+
+ _evas_walk(e);
+ for (i = 0; i < 32; i++)
+ {
+ if ((e->pointer.button & (1 << i)))
+ evas_event_feed_mouse_up(e, i + 1, 0, timestamp, data);
+ }
+ _evas_unwalk(e);
+}
+
+/**
+ * To be documented.
+ *
+ * FIXME: To be fixed.
+ *
+ */
+EAPI void
evas_event_feed_mouse_wheel(Evas *e, int direction, int z, unsigned int
timestamp, const void *data)
{
Evas_List *l, *copy;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs