On Mon, May 10, 2010 at 09:18:50PM -0700, [Ping Cheng wrote:
> From: Ping Cheng <[email protected]>
>
> Only absolute wheels on the pad (normally touch rings) can send
> button events. Absolute wheels that are defined for the stylus,
> such as airbrush wheel or ArtPen rotation should only report raw
> data. It would be up to the client/application to translate those
> raw data in a way they like.
>
> Signed-off-by: Ping Cheng <[email protected]>
applied, thanks.
Out of interest (and for the archive): what's "raw data" in this context.
The absolute coordinates as valuator data?
Cheers,
Peter
> ---
> src/wcmCommon.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/wcmCommon.c b/src/wcmCommon.c
> index 5804aa0..2cfab16 100644
> --- a/src/wcmCommon.c
> +++ b/src/wcmCommon.c
> @@ -579,8 +579,8 @@ static int getWheelButton(LocalDevicePtr local, const
> WacomDeviceState* ds)
> fakeButton = priv->reldn;
> }
>
> - /* emulate events for absolute wheel when needed */
> - if ( ds->abswheel != priv->oldWheel )
> + /* emulate events for absolute wheel when it is a touch ring (on pad) */
> + if ( (ds->abswheel != priv->oldWheel) && IsPad(priv) )
> {
> value = priv->oldWheel - ds->abswheel;
> if ( value > 0 )
> --
> 1.6.6.1
>
------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel