[PATCH 1/7] dix: update comments for moveAbsolute and moveRelative
Peter Hutterer
peter.hutterer at who-t.net
Thu Sep 1 03:41:24 PDT 2011
These functions don't actually move anything, they just calculate x/y and
clip into ranges
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
dix/getevents.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/dix/getevents.c b/dix/getevents.c
index a12462a..6a5ff51 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -707,11 +707,12 @@ UpdateFromMaster(InternalEvent* events, DeviceIntPtr dev, int type, int *num_eve
}
/**
- * Move the device's pointer to the position given in the valuators.
+ * Set x and y to the clipped position given in the valuators. x and y are
+ * in device coordinates.
*
* @param dev The device which's pointer is to be moved.
- * @param x Returns the x position of the pointer after the move.
- * @param y Returns the y position of the pointer after the move.
+ * @param x Returns the x position in device coordinates after the move.
+ * @param y Returns the y position in device coordinates after the move.
* @param mask Bit mask of valid valuators.
* @param valuators Valuator data for each axis between @first and
* @first+ at num.
@@ -745,11 +746,13 @@ moveAbsolute(DeviceIntPtr dev, int *x, int *y, ValuatorMask *mask)
}
/**
- * Move the device's pointer by the values given in @valuators.
+ * Move x,y to by the values given in valuators. x and y are
+ * in device coordinates, taking in to account the last position of this
+ * device.
*
* @param dev The device which's pointer is to be moved.
- * @param x Returns the x position of the pointer after the move.
- * @param y Returns the y position of the pointer after the move.
+ * @param x Returns the x position in device coordinates after the move.
+ * @param y Returns the y position in device coordinates after the move.
* @param mask Bit mask of valid valuators.
* @param valuators Valuator data for each axis between @first and
* @first+ at num.
--
1.7.6
More information about the xorg-devel
mailing list