On Wed, Jul 21, 2010 at 01:04:13AM +0200, Jan Steffens wrote:
> Hi,
> 
> I want to submit a patch to swap buttons 2 and 3 for TabletPCs by
> default, since having the TPCButton do right-click is arguably more
> useful than middle-click.
> 
> Cheers,
> Jan Steffens

> From 4bb377c55cc9759c58ec54849e42347a73284eec Mon Sep 17 00:00:00 2001
> From: Jan Steffens <[email protected]>
> Date: Mon, 19 Jul 2010 06:07:49 +0200
> Subject: [PATCH] Swap stylus buttons 2 and 3 for Tablet PCs
> 
> There are only a few TPC pens with 2 buttons, and arguably right-click
> is more useful than middle-click.
> 
> Signed-off-by: Jan Steffens <[email protected]>
> ---
>  src/wcmValidateDevice.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
> index 37400b9..5410896 100644
> --- a/src/wcmValidateDevice.c
> +++ b/src/wcmValidateDevice.c
> @@ -681,6 +681,13 @@ int wcmParseOptions(LocalDevicePtr local, int hotplugged)
>       if ( !priv->wcmMMonitor )
>               priv->wcmMMonitor = xf86SetBoolOption(local->options, 
> "MMonitor", 1);
>  
> +     /* Swap stylus buttons 2 and 3 for Tablet PCs */
> +     if (TabletHasFeature(common, WCM_TPC) && IsStylus(priv))
> +     {
> +             priv->button[1] = 3;
> +             priv->button[2] = 2;
> +     }
> +
>       for (i=0; i<WCM_MAX_BUTTONS; i++)
>       {
>               sprintf(b, "Button%d", i+1);
> -- 
> 1.7.1.1

merged, thanks

Cheers,
  Peter

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to