Updated Java settings dialog, added Java-C callbacks, tested on device - it doesn't work properly yet

This commit is contained in:
pelya
2010-08-18 15:47:25 +03:00
parent a88843354c
commit c0d8427795
7 changed files with 72 additions and 93 deletions

View File

@@ -25,7 +25,7 @@ class AccelerometerReader implements SensorEventListener {
_manager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
if( _manager != null )
{
if( Globals.AppNeedsArrowKeys )
if( Globals.UseAccelerometerAsArrowKeys )
{
_manager.registerListener(this, _manager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_GAME);
}