From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33718 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJqb4-0000d2-LM for qemu-devel@nongnu.org; Wed, 02 Jun 2010 12:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJqb3-0006fD-Ag for qemu-devel@nongnu.org; Wed, 02 Jun 2010 12:15:14 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:55932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJqb3-0006ap-8r for qemu-devel@nongnu.org; Wed, 02 Jun 2010 12:15:13 -0400 Received: from sourceforge by anomie.yi.org with local (Exim 4.71) (envelope-from ) id 1OJqad-00064T-QW for qemu-devel@nongnu.org; Wed, 02 Jun 2010 12:14:47 -0400 Date: Wed, 2 Jun 2010 12:14:47 -0400 From: Brad Jorsch Subject: Re: [Qemu-devel] [RFC] [PATCH 0/5] Add horizontal wheel support to mice, where possible Message-ID: <20100602161447.GA22741@anomie.yi.org> References: <1272992201-26911-1-git-send-email-anomie@users.sourceforge.net> <4C065CE3.1090609@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C065CE3.1090609@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Jun 02, 2010 at 08:30:11AM -0500, Anthony Liguori wrote: > > I think instead of adding an additional parameter for horizontal > wheel, we should look at making the API capable of > accepting/generating arbitrary button presses. > > Really, we should just drop dz and treat vertical wheel as two > button presses within button_state. Likewise, horizontal wheel > should just be two additional bits within button_state. Wheel handling in cocoa.m and in monitor.c may supply a delta greater than 1 for the mouse wheels. Those front-ends would have to translate those deltas into a series of press+release events. Then the emulated devices (at least the PS/2 and USB devices) would have to sum the designated button presses for outputting again as wheel data. If that's the way we want to go, I can rework the patch easily enough.