From cf92f300900609ae3efe510c70cf12fbe4bc926c Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Fri, 22 Nov 2013 17:15:39 +0000 Subject: [PATCH] Android: Change Android Input to the new AndroidInputHandler. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10908 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/android/com/jme3/system/android/OGLESContext.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/android/com/jme3/system/android/OGLESContext.java b/engine/src/android/com/jme3/system/android/OGLESContext.java index cbd5e8d04..6ed285831 100644 --- a/engine/src/android/com/jme3/system/android/OGLESContext.java +++ b/engine/src/android/com/jme3/system/android/OGLESContext.java @@ -48,6 +48,7 @@ import android.widget.FrameLayout; import com.jme3.input.*; import com.jme3.input.android.AndroidInput; import com.jme3.input.android.AndroidSensorJoyInput; +import com.jme3.input.android.AndroidInputHandler; import com.jme3.input.controls.SoftTextDialogInputListener; import com.jme3.input.dummy.DummyKeyInput; import com.jme3.input.dummy.DummyMouseInput; @@ -75,7 +76,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex protected Timer timer; protected SystemListener listener; protected boolean autoFlush = true; - protected AndroidInput androidInput; + protected AndroidInputHandler androidInput; protected int minFrameDuration = 0; // No FPS cap protected JoyInput androidSensorJoyInput = null; /** @@ -107,7 +108,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex // Start to set up the view view = new AndroidGLSurfaceView(JmeAndroidSystem.getActivity().getApplication()); if (androidInput == null) { - androidInput = new AndroidInput(); + androidInput = new AndroidInputHandler(); } androidInput.setView(view); androidInput.loadSettings(settings); @@ -394,6 +395,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex editTextDialogInput.setHeight(LayoutParams.FILL_PARENT); editTextDialogInput.setPadding(20, 20, 20, 20); editTextDialogInput.setGravity(Gravity.FILL_HORIZONTAL); + //editTextDialogInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); editTextDialogInput.setText(initialValue);