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)
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)
|
2.58 KB,
patch
|
jaas
:
review+
pavlov
:
approval1.9.2+
|
Details | Diff | Splinter Review |
paul and mark observed that MacBook5,1 have their x and y axis reversed.
| Assignee | ||
Comment 1•16 years ago
|
||
Assignee: nobody → doug.turner
Attachment #405947 -
Flags: review?
| Assignee | ||
Updated•16 years ago
|
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;
}
| Assignee | ||
Comment 4•16 years ago
|
||
Attachment #405947 -
Attachment is obsolete: true
Attachment #405971 -
Flags: review?(joshmoz)
Attachment #405971 -
Flags: review?(joshmoz) → review+
| Assignee | ||
Updated•16 years ago
|
Attachment #405971 -
Flags: approval1.9.2?
| Assignee | ||
Comment 5•16 years ago
|
||
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/
| Assignee | ||
Comment 7•16 years ago
|
||
emailed author. waiting for reply.
Updated•16 years ago
|
Alias: omgreallyapple
Updated•16 years ago
|
Attachment #405971 -
Flags: approval1.9.2? → approval1.9.2+
| Assignee | ||
Comment 8•16 years ago
|
||
Updated•16 years ago
|
status1.9.2:
--- → beta1-fixed
| Assignee | ||
Comment 9•15 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•