Closed Bug 521848 (omgreallyapple) Opened 16 years ago Closed 15 years ago

Accelerometer on newer MBP have x and y reversed

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: dougt, Assigned: dougt)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

paul and mark observed that MacBook5,1 have their x and y axis reversed.
Attached patch patch v.1 (obsolete) — Splinter Review
Assignee: nobody → doug.turner
Attachment #405947 - Flags: review?
Attachment #405947 - Flags: review? → review?(joshmoz)
Comment on attachment 405947 [details] [diff] [review] patch v.1 >+static char gModelName[64]; Use a macro (MODEL_NAME_LENGTH) for the "64" constant since you use it in two places in the patch. Keep things in sync.
Attachment #405947 - Flags: review?(joshmoz) → review+
Accelerometer events are broken on model 5,3 too. I need to do this to fix it: else if (!strcmp(gModelName, "MacBookPro5,3")) { xf = ((float)data->y) / normalizeFactor; yf = (((float)data->x) / normalizeFactor) * -1; zf = (((float)data->z) / normalizeFactor) * -1; }
Attached patch patch v.2Splinter Review
Attachment #405947 - Attachment is obsolete: true
Attachment #405971 - Flags: review?(joshmoz)
Attachment #405971 - Flags: review?(joshmoz) → review+
Attachment #405971 - Flags: approval1.9.2?
http://hg.mozilla.org/mozilla-central/rev/ab54c2173373 Leaving open until we get 5,2 data.
Perhaps we can do something more like this project does, maybe even get them to contribute code: http://unimotion.cvs.sourceforge.net/
emailed author. waiting for reply.
Alias: omgreallyapple
Attachment #405971 - Flags: approval1.9.2? → approval1.9.2+
might as well close and open a new bug for the 5,2 line of mbps.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 722665
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: