mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-25 02:22:53 +08:00
Error with acceleromter API. Missed the acceleration object
This commit is contained in:
parent
b5ba71850c
commit
163c6f3536
@ -1,3 +1,10 @@
|
|||||||
|
function Acceleration(x, y, z)
|
||||||
|
{
|
||||||
|
this.x = x;
|
||||||
|
this.y = y;
|
||||||
|
this.z = z;
|
||||||
|
}
|
||||||
|
|
||||||
// Need to define these for android
|
// Need to define these for android
|
||||||
_accel = {}
|
_accel = {}
|
||||||
_accel.x = 0;
|
_accel.x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user