~chasedouglas/frame/v2

« back to all changes in this revision

Viewing changes to include/utouch/frame_x11.h

  • Committer: Chase Douglas
  • Date: 2011-11-10 16:31:07 UTC
  • Revision ID: chase.douglas@ubuntu.com-20111110163107-6vw77lnb8ucplsw5
Make the client get and free event data

Event data can only be retrieved once, so the client needs to be in
control of when this occurs.

Also, rename frame_x11_inject_event() to frame_x11_process_event()

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
void frame_x11_delete(UFHandle handle);
55
55
 
56
56
/**
57
 
 * Inject an X11 input event into the uTouch Frame instance
 
57
 * Process an X11 input event into the uTouch Frame instance
58
58
 *
59
59
 * @param [in] handle The uTouch Frame context
60
 
 * @param [in] event The X11 input event
 
60
 * @param [in] event The X11 generic input event cookie
61
61
 * @return UFStatusSuccess or UFStatusErrorGeneric
62
62
 *
63
 
 * Inject XIDeviceEvent and XIHierarchyEvent events.
 
63
 * The uTouch-Frame library can process XIDeviceEvent and
 
64
 * XIHierarchyEvent events. Processing these events requires additional event
 
65
 * data. This data is obtained by calling XGetEventData on the XEvent. See the
 
66
 * XGetEventData and XFreeEventData man pages for more details.
 
67
 *
 
68
 * This function will silently ignore any events other than those listed above.
64
69
 */
65
 
UFStatus frame_x11_inject_event(UFHandle handle, XEvent *event);
 
70
UFStatus frame_x11_process_event(UFHandle handle, XGenericEventCookie *xcookie);
66
71
 
67
72
/**
68
73
 * Accept ownership of a touch