tasn pushed a commit to branch master.
commit 5500a3c0b1e89ed42d5485a310c23f6757d708d7
Author: Tom Hacohen <[email protected]>
Date: Thu Jun 13 15:38:03 2013 +0100
Add an hook to evas_event_input_mouse_move.
Apparently this one is what the new function that is used by ecore_input
(and should be used by input providers) to get input to Evas.
---
src/lib/tsuite_evas_hook.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/lib/tsuite_evas_hook.c b/src/lib/tsuite_evas_hook.c
index 6d2d633..03ebac6 100644
--- a/src/lib/tsuite_evas_hook.c
+++ b/src/lib/tsuite_evas_hook.c
@@ -712,6 +712,24 @@ evas_event_feed_mouse_move(Evas *e, int x, int y, unsigned
int timestamp,
orig(e, x, y, timestamp, data);
}
+/* FIXME: Handle framespace. */
+EAPI void
+evas_event_input_mouse_move(Evas *e, int x, int y, unsigned int timestamp,
+ const void *data)
+{
+ mouse_move t = { x, y, timestamp, evas_list_find(e) };
+#ifdef DEBUG_TSUITE
+ printf("Calling %s timestamp=<%u>\n", __func__, timestamp);
+#endif
+ int evt = tsuite_event_type_get(EVAS_CALLBACK_MOUSE_MOVE);
+ if (t.n_evas >= 0)
+ ADD_TO_LIST(evt, mouse_move, t);
+
+ void (*orig) (Evas *e, int x, int y, unsigned int timestamp,
+ const void *data) = dlsym(RTLD_NEXT, __func__);
+ orig(e, x, y, timestamp, data);
+}
+
EAPI void
evas_event_feed_mouse_wheel(Evas *e, int direction, int z,
unsigned int timestamp, const void *data)
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev