androidInput.loadSettings was never called, so setting mouseEventsEnabled = false; in MainActivity had no effect.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10012 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
iwg..ic 12 years ago
parent c798db10b2
commit 200df1c84b
  1. 6
      engine/src/android/com/jme3/system/android/OGLESContext.java

@ -121,6 +121,8 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
} else {
androidInput.setView(view);
}
androidInput.loadSettings(settings);
if (configType == ConfigType.LEGACY) {
// Hardcoded egl setup
clientOpenGLESVersion = 2;
@ -247,6 +249,10 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
@Override
public void setSettings(AppSettings settings) {
this.settings.copyFrom(settings);
if (androidInput != null) {
androidInput.loadSettings(settings);
}
}
@Override

Loading…
Cancel
Save