forked from github/cordova-android
Merge branch 'master' of git://github.com/davejohnson/phonegap-android
This commit is contained in:
commit
4e02179bf8
@ -46,12 +46,12 @@ Accelerometer.prototype.getCurrentAcceleration = function(successCallback, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Accelerometer.prototype.gotAccel = function(key, x, y, z)
|
Accelerometer.prototype.gotCurrentAcceleration = function(key, x, y, z)
|
||||||
{
|
{
|
||||||
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