From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 16:29:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 299EC106567D for ; Wed, 13 Aug 2008 16:29:41 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id B8FC98FC19 for ; Wed, 13 Aug 2008 16:29:40 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so64144ika.3 for ; Wed, 13 Aug 2008 09:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender; bh=doRi0Bg3xoEiXCx1ZERBht0QC405eYjf6KDcWrXr/H0=; b=liJDQIvqyou8NUBdBfb0gEec83hhCxGDWtgNTSAMw4mFL7+5Ej3TQGxtJnvOrFXvTu gBgBZUh0a+q9pdOz3jJYs2QB3IWar8UW5s0wdYq1wijyBTVtv2H0kXZIwfdFnNY5qeeT Dekzg9v/DpDKrMLbtQeKsqilC2ec6Qs0ctmYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:sender; b=B9VMeKkrLUep0hh7ULYuhhdXzBPBmjjO8xL44DEyi6dNKHEdK0lNeRXCR06kudUn43 SWWLA31Vff/Lz4xhiPE8uV1NRC7KeyAR6NkxYZJRLxY5qu4AcFjrcGpOzopOvnsMGlSA S5wIRXjRv+298ztQ29ZQJZKCNQCtflrYA8oFs= Received: by 10.210.89.4 with SMTP id m4mr9101ebb.21.1218644978375; Wed, 13 Aug 2008 09:29:38 -0700 (PDT) Received: from epsilon.local ( [89.214.74.64]) by mx.google.com with ESMTPS id p10sm767782gvf.7.2008.08.13.09.29.35 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 09:29:37 -0700 (PDT) Date: Wed, 13 Aug 2008 17:29:31 +0100 From: Rui Paulo To: Andriy Gapon Message-ID: <20080813162931.GC718@epsilon.local> References: <48A300B9.5090105@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A300B9.5090105@icyb.net.ua> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: Rui Paulo Cc: freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: tilt/horizontal scroll support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:29:41 -0000 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