lkml.org 
[lkml]   [2006]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Apple Motion Sensor driver
From
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-13 17:23    [W:0.210 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site