From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 16 13:12:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D581916A41C for ; Sat, 16 Jul 2005 13:12:34 +0000 (GMT) (envelope-from creep@daedalus.desk.pl) Received: from daedalus.desk.pl (daedalus.desk.pl [62.233.238.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4496D43D46 for ; Sat, 16 Jul 2005 13:12:34 +0000 (GMT) (envelope-from creep@daedalus.desk.pl) Received: from localhost (localhost [127.0.0.1]) by daedalus.desk.pl (Postfix) with ESMTP id 14D0336673A for ; Sat, 16 Jul 2005 15:03:44 +0200 (CEST) Received: from daedalus.desk.pl ([127.0.0.1]) by localhost (daedalus [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19552-10 for ; Sat, 16 Jul 2005 15:03:42 +0200 (CEST) Received: by daedalus.desk.pl (Postfix, from userid 1023) id DBD37366734; Sat, 16 Jul 2005 15:03:42 +0200 (CEST) Date: Sat, 16 Jul 2005 15:03:42 +0200 From: Marcin Koziej To: freebsd-hackers@freebsd.org Message-ID: <20050716130342.GA18875@daedalus.desk.pl> References: <20050716120022.A86C716A41C@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <20050716120022.A86C716A41C@hub.freebsd.org> User-Agent: Mutt/1.4.1i X-Antivirus: Skaner Antywirusowy DESK.pl Subject: Advice on psm driver interface ? 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: Sat, 16 Jul 2005 13:12:34 -0000 Hello Hackers, I'm playing with the psm driver and a symantics touchpad - I'd like to send the touch pressure along with x/y coordinates/buttons and then chenge the behaviour of mouse in moused using the pressure. What would be better: 1. Extend the struct mousestatus with additional pressure field. 2. Use the mousestatus's z axis movement (dz field). It in fact IS the third dimension, right? The whole concept of z being used for scrolling at times, and at times scrolling being just additional buttons is odd to me. 3. Use another ioctl like MOUSE_SYN_GETHWINFO to fetch the pressure value. What would be best? m.