forked from enlightenment/efl
add get for last x,y root recorded co-ords. only works once events come in
and only works on LAST event recieved SVN revision: 12897
This commit is contained in:
parent
314d82cc04
commit
c69ac56863
|
@ -1184,7 +1184,8 @@ EAPI int ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_A
|
|||
|
||||
EAPI void ecore_x_focus_reset(void);
|
||||
EAPI void ecore_x_events_allow_all(void);
|
||||
|
||||
EAPI void ecore_x_pointer_last_xy_get(int *x, int *y);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1380,7 +1380,12 @@ ecore_x_events_allow_all(void)
|
|||
XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ecore_x_pointer_last_xy_get(int *x, int *y)
|
||||
{
|
||||
if (x) *x = _ecore_x_event_last_root_x;
|
||||
if (y) *y = _ecore_x_event_last_root_y;
|
||||
}
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue