[PATCH weston v2 4/6] tests: Add test for pointer axis events

Pekka Paalanen ppaalanen at gmail.com
Mon Dec 18 09:53:24 UTC 2017


On Wed, 13 Dec 2017 13:27:56 +0200
Alexandros Frantzis <alexandros.frantzis at collabora.com> wrote:

> Add test to verify the server correctly emits pointer axis events.  This
> requires updating the weston-test protocol with a new request for
> pointer axis events.
> 
> Signed-off-by: Alexandros Frantzis <alexandros.frantzis at collabora.com>
> ---
> 
> Changes in v2:
>  - Add unit suffix "msec" to variables that hold event time.
> 
>  protocol/weston-test.xml          |  7 +++++++
>  tests/pointer-test.c              | 28 ++++++++++++++++++++++++++++
>  tests/weston-test-client-helper.c | 17 ++++++++++++++---
>  tests/weston-test-client-helper.h |  4 ++++
>  tests/weston-test.c               | 20 ++++++++++++++++++++
>  5 files changed, 73 insertions(+), 3 deletions(-)

> diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
> index 6f5f9c41..76f07491 100644
> --- a/tests/weston-test-client-helper.h
> +++ b/tests/weston-test-client-helper.h
> @@ -90,8 +90,12 @@ struct pointer {
>  	int y;
>  	uint32_t button;
>  	uint32_t state;
> +	uint32_t axis;
> +	double axis_value;
>  	uint32_t motion_time_msec;
>  	uint32_t button_time_msec;
> +	double axis_time_msec;
> +	double axis_stop_time_msec;

Why are these times doubles instead of uint32_t?

>  };


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20171218/ab5c5236/attachment.sig>


More information about the wayland-devel mailing list