From 163c6f35365004f0da188bd7d84613efaa87d76a Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Mon, 23 Nov 2009 10:49:37 -0800 Subject: [PATCH] Error with acceleromter API. Missed the acceleration object --- js/accelerometer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/accelerometer.js b/js/accelerometer.js index 4d89ced1..d0b40a6b 100644 --- a/js/accelerometer.js +++ b/js/accelerometer.js @@ -1,3 +1,10 @@ +function Acceleration(x, y, z) +{ + this.x = x; + this.y = y; + this.z = z; +} + // Need to define these for android _accel = {} _accel.x = 0;