udev's input_id builtin assigns ID_INPUT_JOYSTICK based on BTN_1, ABS_WHEEL
and a couple of other bits. Wacom devices trigger that but they're definitely
not joysticks.

Unset the bit, we know better than udev here.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 tools/generate-udev-rules.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/generate-udev-rules.c b/tools/generate-udev-rules.c
index c6d430b..6883451 100644
--- a/tools/generate-udev-rules.c
+++ b/tools/generate-udev-rules.c
@@ -82,7 +82,8 @@ static void print_udev_entry_for_match (WacomDevice *device, 
const WacomMatch *m
                        return;
        }
 
-       printf("ENV{ID_INPUT}=\"1\", ENV{ID_INPUT_TABLET}=\"1\"%s\n", touchpad);
+       /* unset joystick, set tablet and possibly touchpad */
+       printf("ENV{ID_INPUT}=\"1\", ENV{ID_INPUT_JOYSTICK}=\"\", 
ENV{ID_INPUT_TABLET}=\"1\"%s\n", touchpad);
 }
 
 static void print_uinput_entry_for_match (WacomDevice *device, const 
WacomMatch *match,
-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to