From: Egbert Eich <e...@suse.com>

Add BTN_TOOL_DOUBLETAP and BTN_TOOL_TRIPLETAP, return
TOUCH_ID for them.

This brings the code in sync with usbParseKeyEvent().

Signed-off-by: Egbert Eich <e...@suse.com>
---
 src/wcmUSB.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index f32c591..f6be7d4 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -1499,6 +1499,10 @@ static int toolTypeToDeviceType(WacomCommonPtr common, 
int type, int code, int v
 
                        case BTN_TOOL_RUBBER:
                                return ERASER_ID;
+
+                       case BTN_TOOL_DOUBLETAP:
+                       case BTN_TOOL_TRIPLETAP:
+                               return TOUCH_ID;
                }
        }
        else if (type == EV_ABS) {
-- 
1.8.4.5


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to