[PATCH wayland-protocols v5 2/4] tablet: change all degree values from int to wl_fixed
Bryce Harrington
bryce at osg.samsung.com
Wed Jul 13 21:59:25 UTC 2016
On Mon, Jul 11, 2016 at 05:13:34PM +0200, Carlos Garnacho wrote:
> From: Peter Hutterer <peter.hutterer at who-t.net>
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> Reviewed-by: Jason Gerecke <jason.gerecke at wacom.com>
> Reviewed-by: Carlos Garnacho <carlosg at gnome.org>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
> ---
> unstable/tablet/tablet-unstable-v2.xml | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/unstable/tablet/tablet-unstable-v2.xml b/unstable/tablet/tablet-unstable-v2.xml
> index 81e9835..de9217b 100644
> --- a/unstable/tablet/tablet-unstable-v2.xml
> +++ b/unstable/tablet/tablet-unstable-v2.xml
> @@ -478,21 +478,21 @@
> <event name="tilt">
> <description summary="tilt change event">
> Sent whenever one or both of the tilt axes on a tool change. Each tilt
> - value is in 0.01 of a degree, relative to the z-axis of the tablet.
> + value is in degrees, relative to the z-axis of the tablet.
> The angle is positive when the top of a tool tilts along the
> positive x or y axis.
> </description>
> - <arg name="tilt_x" type="int" summary="The current value of the X tilt axis"/>
> - <arg name="tilt_y" type="int" summary="The current value of the Y tilt axis"/>
> + <arg name="tilt_x" type="fixed" summary="The current value of the X tilt axis"/>
> + <arg name="tilt_y" type="fixed" summary="The current value of the Y tilt axis"/>
> </event>
>
> <event name="rotation">
> <description summary="z-rotation change event">
> Sent whenever the z-rotation axis on the tool changes. The
> - rotation value is in 0.01 of a degree clockwise from the tool's
> + rotation value is in degrees clockwise from the tool's
> logical neutral position.
> </description>
> - <arg name="degrees" type="int" summary="The current rotation of the Z axis"/>
> + <arg name="degrees" type="fixed" summary="The current rotation of the Z axis"/>
> </event>
>
> <event name="slider">
> @@ -510,10 +510,10 @@
> <description summary="Wheel delta event">
> Sent whenever the wheel on the tool emits an event. This event
> contains two values for the same axis change. The degrees value is
> - in 0.01 of a degree in the same orientation as the
> - wl_pointer.vertical_scroll axis. The clicks value is in discrete
> - logical clicks of the mouse wheel. This value may be zero if the
> - movement of the wheel was less than one logical click.
> + in the same orientation as the wl_pointer.vertical_scroll axis. The
> + clicks value is in discrete logical clicks of the mouse wheel. This
> + value may be zero if the movement of the wheel was less
> + than one logical click.
>
> Clients should choose either value and avoid mixing degrees and
> clicks. The compositor may accumulate values smaller than a logical
> @@ -521,7 +521,7 @@
> Thus, wl_tablet_tool.wheel events with non-zero clicks values may
> have different degrees values.
> </description>
> - <arg name="degrees" type="int" summary="The wheel delta in 0.01 of a degree"/>
> + <arg name="degrees" type="fixed" summary="The wheel delta in degrees"/>
> <arg name="clicks" type="int" summary="The wheel delta in discrete clicks"/>
> </event>
>
> --
> 2.7.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list