From: Chris Bagwell <ch...@cnpbagwell.com>

Newer MT Bamboo drivers send BTN_LEFT, BTN_RIGHT,
BTN_FORWARD, and BTN_BACK instead of BTN_0, 1, 2, 3.

BTN_LEFT/RIGHT already were handled for mouse tools.

Add BTN_FORWARD/BACK and treat same as BTN_SIDE/EXTRA
mouse buttons.  This is good because by default these
go to buttons 8/9 which some apps treat as forward/back.

Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>
---
 src/wcmUSB.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index b4f50c2..ce79787 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1068,10 +1068,12 @@ static int usbParseBTNEvent(WacomCommonPtr common,
                        break;
 
                case BTN_SIDE:
+               case BTN_BACK:
                        MOD_BUTTONS(3, event->value);
                        break;
 
                case BTN_EXTRA:
+               case BTN_FORWARD:
                        MOD_BUTTONS(4, event->value);
                        break;
 
-- 
1.7.3.2


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to