~bregma/geis/gtest-refactor

« back to all changes in this revision

Viewing changes to include/geis/geis.h

  • Committer: Daniel d'Andrada
  • Date: 2012-04-24 20:24:56 UTC
  • mfrom: (256.1.10 lp984069_v5)
  • Revision ID: daniel.dandrada@canonical.com-20120424202456-lozx0svr3f5s89fa
GeisTouches from direct devices should be in window coordinates

GeisTouches provided by gesture events (GEIS_EVENT_GESTURE_BEGIN,
GEIS_EVENT_GESTURE_UPDATE and GEIS_EVENT_GESTURE_END) should be in window
coordinates if they come from a direct device (e.g. touchscreens) and in
input device coordinates when from indirect devices (e.g. touchpads/trackpads).

Have this also documented in geis.h

They were coming always in device coordinates.

Includes unit test and X11 mockups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2061
2061
 * is capable of reporting differing sets of touch attributes, so there is no
2062
2062
 * guarantee that any or all of the defined touch attributes will bre present.
2063
2063
 *
 
2064
 * If the touch comes from a direct device (see
 
2065
 * GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH) its position (x and y attributes) will
 
2066
 * be in window coordinates, otherwise it will be in the input device's own
 
2067
 * coordinate system.
 
2068
 *
2064
2069
 * @{
2065
2070
 *
2066
2071
 * @def GEIS_TOUCH_ATTRIBUTE_ID