mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
fixed bug with accelerometer z value not being set #36
This commit is contained in:
parent
d2048a7c5a
commit
6d60a2b012
@ -48,11 +48,10 @@ Accelerometer.prototype.getCurrentAcceleration = function(successCallback, error
|
|||||||
|
|
||||||
Accelerometer.prototype.gotAccel = function(key, x, y, z)
|
Accelerometer.prototype.gotAccel = function(key, x, y, z)
|
||||||
{
|
{
|
||||||
console.log('we won');
|
|
||||||
var a = new Acceleration(x,y,z);
|
var a = new Acceleration(x,y,z);
|
||||||
a.x = x;
|
a.x = x;
|
||||||
a.y = y;
|
a.y = y;
|
||||||
a.x = z;
|
a.z = z;
|
||||||
a.win = accelListeners[key].win;
|
a.win = accelListeners[key].win;
|
||||||
a.fail = accelListeners[key].fail;
|
a.fail = accelListeners[key].fail;
|
||||||
this.timestamp = new Date().getTime();
|
this.timestamp = new Date().getTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user