From 4096d100ee3c28d3811b86b8ded1ae4f40f04381 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 6 Jun 2023 10:53:16 +1000 Subject: [PATCH] ei: more docs that data is in pixels or mm This depends on the device type and was-already documented in some functions but not others. --- src/libei.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libei.h b/src/libei.h index fe541ca..3294abd 100644 --- a/src/libei.h +++ b/src/libei.h @@ -1407,8 +1407,8 @@ ei_device_frame(struct ei_device *device, uint64_t time); * This method is only available on an ei sender context. * * @param device The EI device - * @param x The x movement in logical pixels - * @param y The y movement in logical pixels + * @param x The x movement in logical pixels or mm, depending on the device type + * @param y The y movement in logical pixels or mm, depending on the device type */ void ei_device_pointer_motion(struct ei_device *device, double x, double y); @@ -1425,8 +1425,8 @@ ei_device_pointer_motion(struct ei_device *device, double x, double y); * This method is only available on an ei sender context. * * @param device The EI device - * @param x The x position in logical pixels - * @param y The y position in logical pixels + * @param x The x position in logical pixels or mm, depending on the device type + * @param y The y position in logical pixels or mm, depending on the device type */ void ei_device_pointer_motion_absolute(struct ei_device *device, @@ -1463,8 +1463,8 @@ ei_device_button_button(struct ei_device *device, * This method is only available on an ei sender context. * * @param device The EI device - * @param x The x scroll distance in logical pixels - * @param y The y scroll distance in logical pixels + * @param x The x scroll distance in logical pixels or mm, depending on the device type + * @param y The y scroll distance in logical pixels or mm, depending on the device type * * @see ei_device_scroll_discrete */