Improve accelerometer support
This commit is contained in:
@@ -60,6 +60,10 @@ class NativeApplication {
|
||||
|
||||
AudioManager.init ();
|
||||
|
||||
#if (ios || android)
|
||||
Sensor.registerSensor (SensorType.ACCELEROMETER, 0);
|
||||
#end
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +90,6 @@ class NativeApplication {
|
||||
lime_window_event_manager_register (handleWindowEvent, windowEventInfo);
|
||||
|
||||
#if (ios || android)
|
||||
Sensor.registerSensor (SensorType.ACCELEROMETER, 0);
|
||||
lime_sensor_event_manager_register (handleSensorEvent, sensorEventInfo);
|
||||
#end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user