On Thu, Mar 10, 2011 at 4:55 PM, Peter Hutterer <peter.hutte...@who-t.net>wrote:
>
> Quote from Ping:
> "Since tilt is only used as raw value to calculate rotation for I4 mouse,
> i.e., they are not posted as valuators, resetting them or not does not make
> a difference."
>
> Let's reset it to 0 then so we don't get confusing values during debugging.
>
> Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
>
Acked-by: Ping Cheng <pingli...@gmail.com>
Ping
> ---
> src/wcmCommon.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/wcmCommon.c b/src/wcmCommon.c
> index 96a0ae3..e27120a 100644
> --- a/src/wcmCommon.c
> +++ b/src/wcmCommon.c
> @@ -902,9 +902,10 @@ void wcmEvent(WacomCommonPtr common, unsigned int
> channel,
> TabletHasFeature(common, WCM_RING)) /* I4 */
> {
> /* convert Intuos4 mouse tilt to rotation */
> - /* FIXME: shouldn't we reset tilt? */
> ds.rotation = wcmTilt2R(ds.tiltx, ds.tilty,
> INTUOS4_CURSOR_ROTATION_OFFSET);
> + ds.tiltx = 0;
> + ds.tilty = 0;
> }
>
> /* Optionally filter values only while in proximity */
> --
> 1.7.4
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel