On Thu, Nov 25, 2010 at 06:08:41PM -0800, Ping Cheng wrote:
> We wanted to normalize Intuos4 stylus wheel. But I did it on the
> pad ring instead.
> 
> Signed-off-by: Ping Cheng <[email protected]>
> ---
>  src/wcmUSB.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/wcmUSB.c b/src/wcmUSB.c
> index 51161f0..9305985 100644
> --- a/src/wcmUSB.c
> +++ b/src/wcmUSB.c
> @@ -835,6 +835,9 @@ static int usbParseAbsEvent(WacomCommonPtr common,
>                       ds->distance = event->value;
>                       break;
>               case ABS_WHEEL:
> +                     ds->abswheel = event->value;
> +                     break;
> +             case ABS_Z:
>                       {
>                               double norm = event->value *
>                                       MAX_ROTATION_RANGE /
> @@ -842,9 +845,6 @@ static int usbParseAbsEvent(WacomCommonPtr common,
>                               ds->abswheel = (int)norm + MIN_ROTATION;
>                               break;
>                       }

the stylus wheel is exported as ABS_Z??

Cheers,
  Peter

> -             case ABS_Z:
> -                     ds->abswheel = event->value;
> -                     break;
>               case ABS_THROTTLE:
>                       ds->throttle = event->value;
>                       break;
> -- 
> 1.7.2.3
> 

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to