Final fix to accelerometer input
This commit is contained in:
@@ -48,12 +48,14 @@ class AccelerometerReader implements SensorListener {
|
||||
v[2] = values[2];
|
||||
|
||||
if (sensor == SensorManager.SENSOR_ACCELEROMETER) {
|
||||
/*
|
||||
if( Globals.HorizontalOrientation )
|
||||
{
|
||||
v[0] = values[2];
|
||||
v[1] = values[1];
|
||||
v[2] = values[0];
|
||||
}
|
||||
*/
|
||||
nativeAccelerometer(v[0], v[1], v[2]);
|
||||
}
|
||||
if (sensor == SensorManager.SENSOR_ORIENTATION) {
|
||||
|
||||
Reference in New Issue
Block a user