From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755183AbWKMQTl (ORCPT ); Mon, 13 Nov 2006 11:19:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755186AbWKMQTl (ORCPT ); Mon, 13 Nov 2006 11:19:41 -0500 Received: from crystal.sipsolutions.net ([195.210.38.204]:31894 "EHLO sipsolutions.net") by vger.kernel.org with ESMTP id S1755183AbWKMQTk (ORCPT ); Mon, 13 Nov 2006 11:19:40 -0500 Subject: Re: [PATCH] Apple Motion Sensor driver From: Johannes Berg To: Stelian Pop Cc: Dmitry Torokhov , Andrew Morton , Michael Hanselmann , "Aristeu S. Rozanski F." , Benjamin Herrenschmidt , Paul Mackerras , Robert Love , Jean Delvare , Rene Nussbaumer , Linux Kernel Mailing List In-Reply-To: <1163434455.23444.14.camel@localhost.localdomain> References: <1163280972.32084.13.camel@localhost.localdomain> <1163431758.23444.8.camel@localhost.localdomain> <1163434455.23444.14.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 13 Nov 2006 17:20:26 +0100 Message-Id: <1163434826.2805.2.camel@ux156> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-sips-origin: local Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2006-11-13 at 17:14 +0100, Stelian Pop wrote: > > + input_report_abs(ams_info.idev, ABS_X, x - ams_info.xcalib); > + input_report_abs(ams_info.idev, ABS_Y, y - ams_info.ycalib); > + input_report_abs(ams_info.idev, ABS_Z, z - ams_info.zcalib); Sorry about chiming in so late. When I tried to use this with neverball, ams_info.xcalib - x (and similar for the others) was more useful because of the way things are oriented. If I tilt my powerbook to the left then with this original code the mouse cursor moves to the right which is contrary to what neverball expects. Not sure if we want to change this or not, it sort of boils down to a userspace issue and we could just patch neverball to have a direction inversion :) johannes