From 032c04715407da57084d2427706749444742e7c7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 29 Apr 2009 18:29:58 +1000 Subject: [PATCH] Count REL_DIAL as a scrollwheel during EvdevProbe (#21457) The Griffin Powermate only has a single axis (REL_DIAL). This axis is posted as horizontal scroll wheel, so we need to ensure the scroll wheel setup (including ensuring that enough buttons are available) is triggered accordingly. X.Org Bug 21457 --- src/evdev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 647278f..f8590bf 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1517,7 +1517,8 @@ EvdevProbe(InputInfoPtr pInfo) } if (TestBit(REL_WHEEL, pEvdev->rel_bitmask) || - TestBit(REL_HWHEEL, pEvdev->rel_bitmask)) { + TestBit(REL_HWHEEL, pEvdev->rel_bitmask) || + TestBit(REL_DIAL, pEvdev->rel_bitmask)) { xf86Msg(X_INFO, "%s: Found scroll wheel(s)\n", pInfo->name); has_scroll = TRUE; if (!num_buttons) -- 1.6.3.rc1.2.g0164.dirty