Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2008 17:29:31 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: tilt/horizontal scroll support
Message-ID:  <20080813162931.GC718@epsilon.local>
In-Reply-To: <48A300B9.5090105@icyb.net.ua>
References:  <48A300B9.5090105@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 13, 2008 at 06:41:45PM +0300, Andriy Gapon wrote:
> 
> I have the following mouse:
> http://www.logitech.com/index.cfm/partners/system_builders_integrators/products/mice/devices/3141&cl=gb,en#

...

> So now I have two questions.
> 1. What would be the best way to each ums about the tilt capability of
> this mouse? Is there some generic way to detect it or maybe
> logitech-specific way or some model-specific quirk is required?
> 
> 2. What would be the best way to pass tilting data to consumers?
> I see two possibilities:
> A) map data[4] to some extended button value (do it in ums driver), e.g.
> to button 6 and button 7;
> B) it seems that dz value is always 1 or -1, amount of scrolling affects
> number of mouse events, but abs(dz) is always 1; if this is really
> always true, then tilting could be piggy-backed onto dz as +2/-2 value
> (or some such) and then Xorg sysmouse driver could be taught to
> interpret such values as special button presses (similarly to how
> vertical scrolling is handled in it).

Well, perhaps the best way is to teach sysmouse about horizontal scrolling
and then add a quirk WRT your mouse ?

sysmouse(4) really needs to grow horizontal scrolling since nowadays every
mouse has it.

Regards,
-- 
Rui Paulo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080813162931.GC718>