Signed-off-by: Ping Cheng <pingli...@gmail.com> --- src/wcmUSB.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/src/wcmUSB.c b/src/wcmUSB.c index 689378a..017e3a0 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -1025,7 +1025,22 @@ static int usbParseKeyEvent(WacomCommonPtr common, break; case BTN_TOUCH: - /* actual events are processed by BTN_TOOL_* events */ + if (common->wcmProtocolLevel == WCM_PROTOCOL_GENERIC) + { + /* 1FG USB touchscreen */ + if (!TabletHasFeature(common, WCM_PEN) && + TabletHasFeature(common, WCM_1FGT) && + TabletHasFeature(common, WCM_LCD)) + { + DBG(6, common, + "USB 1FG Touch detected %x (value=%d)\n", + event->code, event->value); + ds->device_type = TOUCH_ID; + ds->device_id = TOUCH_DEVICE_ID; + ds->proximity = event->value; + MOD_BUTTONS(0, event->value); + } + } break; case BTN_TOOL_FINGER: -- 1.7.4 ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel