> The fact that the accelerometer offers a (low res) joystick emulation is > only a nice hack and I'm not even sure somebody (except Johannes) will > find an use for it. Heh. Well I think it's fun once a while :) On Mon, 2006-11-13 at 21:52 +0100, Stelian Pop wrote: > > + x -= ams_info.xcalib; > + y -= ams_info.ycalib; > + z -= ams_info.zcalib; > + > + input_report_abs(ams_info.idev, ABS_X, invert ? -x : x); > + input_report_abs(ams_info.idev, ABS_Y, invert ? -y : y); > + input_report_abs(ams_info.idev, ABS_Z, z - ams_info.zcalib); You're double-calibrating z now, which is surely not what was intended. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [PATCH] Apple Motion Sensor driver
- From: Stelian Pop <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- References:
- [PATCH] Apple Motion Sensor driver
- From: Stelian Pop <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: Stelian Pop <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: Stelian Pop <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: "Dmitry Torokhov" <[email protected]>
- Re: [PATCH] Apple Motion Sensor driver
- From: Stelian Pop <[email protected]>
- [PATCH] Apple Motion Sensor driver
- Prev by Date: Re: [PATCH] atkbd: disable spurious ACK/NAK warning on panic
- Next by Date: Re: ISICOM Drivers
- Previous by thread: Re: [PATCH] Apple Motion Sensor driver
- Next by thread: Re: [PATCH] Apple Motion Sensor driver
- Index(es):