Final fix to accelerometer input

This commit is contained in:
pelya
2010-07-09 18:50:43 +03:00
parent fa534f2570
commit cad2c8ff2a
4 changed files with 19 additions and 13 deletions

View File

@@ -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) {