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.
This commit is contained in:
Tom Hacohen 2013-06-13 15:38:03 +01:00
parent b606de65cc
commit 5500a3c0b1
1 changed files with 18 additions and 0 deletions

View File

@ -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)