Hi
Let me know, if this would work fine ?
reference: https://sourceforge.net/p/linuxwacom/bugs/227/
--
--ritz
(paradoxum)
%
Most bacteria have the decency to be microscopic. Epulopiscium
fishelsoni is not among them. The newly identified one-celled
macro-microorganism is a full .5 mm long, large enough to be seen
with the naked eye. Described in the current Nature, "It is a
million times as massive as a typical bacterium."-Time, page 25,
March 29, 1993
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
index 1b9b398..29ffcc0 100644
--- a/libwacom/libwacom.c
+++ b/libwacom/libwacom.c
@@ -54,10 +54,13 @@ libwacom_get_device(const WacomDeviceDatabase *db, const char *match)
}
static gboolean
-is_tablet_or_touchpad (GUdevDevice *device)
+is_useable_device (GUdevDevice *device)
{
+ gboolean is_wacom = (g_strcmp0 ("wacom", g_udev_device_get_property(device,"ID_USB_DRIVER")) == 0 );
+
return g_udev_device_get_property_as_boolean (device, "ID_INPUT_TABLET") ||
- g_udev_device_get_property_as_boolean (device, "ID_INPUT_TOUCHPAD");
+ g_udev_device_get_property_as_boolean (device, "ID_INPUT_TOUCHPAD") ||
+ is_wacom ? g_udev_device_get_property_as_boolean(device, "ID_INPUT_TOUCHSCREEN"): 0 ;
}
/* Overriding SUBSYSTEM isn't allowed in udev (works sometimes, but not
@@ -154,11 +157,11 @@ get_device_info (const char *path,
}
/* Touchpads are only for the "Finger" part of Bamboo devices */
- if (!is_tablet_or_touchpad(device)) {
+ if (!is_useable_device(device)) {
GUdevDevice *parent;
parent = g_udev_device_get_parent(device);
- if (!parent || !is_tablet_or_touchpad(parent)) {
+ if (!parent || !is_useable_device(parent)) {
libwacom_error_set(error, WERROR_INVALID_PATH, "Device '%s' is not a tablet", path);
g_object_unref (parent);
goto bail;
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel