Improve accelerometer support

This commit is contained in:
Joshua Granick
2015-09-15 22:46:07 -07:00
parent 1170702692
commit 5b5528e7cb
2 changed files with 26 additions and 9 deletions

View File

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