You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add APIs for libGDX games
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package android.hardware;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import android.location.Location;
|
||||
import android.location.LocationListener;
|
||||
import android.location.LocationManager;
|
||||
@@ -44,4 +47,8 @@ public class SensorManager {
|
||||
}
|
||||
|
||||
native void register_accelerometer_listener_native(SensorEventListener listener, Sensor sensor, int sampling_period);
|
||||
|
||||
public List<Sensor> getSensorList(int type) {
|
||||
return Arrays.asList(getDefaultSensor(type));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user