2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 11:19:59 +01:00

Disable accelerometer

This commit is contained in:
Alibek Omarov 2015-05-24 14:26:44 +06:00
parent fe836000cf
commit e6eba27bf5

View File

@ -102,11 +102,7 @@ public class SDLActivity extends Activity {
protected String[] getLibraries() {
return new String[] {
"SDL2",
// "SDL2_image",
// "SDL2_mixer",
// "SDL2_net",
// "SDL2_ttf",
"touchcontrols",
"touchcontrols"
"xash"
};
}
@ -331,7 +327,7 @@ public class SDLActivity extends Activity {
if (!SDLActivity.mIsPaused && SDLActivity.mIsSurfaceReady) {
SDLActivity.mIsPaused = true;
SDLActivity.nativePause();
mSurface.enableSensor(Sensor.TYPE_ACCELEROMETER, false);
//mSurface.enableSensor(Sensor.TYPE_ACCELEROMETER, false);
}
}
@ -1027,7 +1023,7 @@ View.OnKeyListener, View.OnTouchListener, SensorEventListener {
requestFocus();
setOnKeyListener(this);
setOnTouchListener(this);
enableSensor(Sensor.TYPE_ACCELEROMETER, true);
//enableSensor(Sensor.TYPE_ACCELEROMETER, true);
}
public Surface getNativeSurface() {
@ -1117,7 +1113,7 @@ View.OnKeyListener, View.OnTouchListener, SensorEventListener {
// Start up the C app thread and enable sensor input for the first time
final Thread sdlThread = new Thread(new SDLMain(), "SDLThread");
enableSensor(Sensor.TYPE_ACCELEROMETER, true);
//enableSensor(Sensor.TYPE_ACCELEROMETER, true);
sdlThread.start();
// Set up a listener thread to catch when the native thread ends