Android: Change Android Input to the new AndroidInputHandler.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10908 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
60c58fd081
commit
cf92f30090
@ -48,6 +48,7 @@ import android.widget.FrameLayout;
|
|||||||
import com.jme3.input.*;
|
import com.jme3.input.*;
|
||||||
import com.jme3.input.android.AndroidInput;
|
import com.jme3.input.android.AndroidInput;
|
||||||
import com.jme3.input.android.AndroidSensorJoyInput;
|
import com.jme3.input.android.AndroidSensorJoyInput;
|
||||||
|
import com.jme3.input.android.AndroidInputHandler;
|
||||||
import com.jme3.input.controls.SoftTextDialogInputListener;
|
import com.jme3.input.controls.SoftTextDialogInputListener;
|
||||||
import com.jme3.input.dummy.DummyKeyInput;
|
import com.jme3.input.dummy.DummyKeyInput;
|
||||||
import com.jme3.input.dummy.DummyMouseInput;
|
import com.jme3.input.dummy.DummyMouseInput;
|
||||||
@ -75,7 +76,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
|||||||
protected Timer timer;
|
protected Timer timer;
|
||||||
protected SystemListener listener;
|
protected SystemListener listener;
|
||||||
protected boolean autoFlush = true;
|
protected boolean autoFlush = true;
|
||||||
protected AndroidInput androidInput;
|
protected AndroidInputHandler androidInput;
|
||||||
protected int minFrameDuration = 0; // No FPS cap
|
protected int minFrameDuration = 0; // No FPS cap
|
||||||
protected JoyInput androidSensorJoyInput = null;
|
protected JoyInput androidSensorJoyInput = null;
|
||||||
/**
|
/**
|
||||||
@ -107,7 +108,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
|||||||
// Start to set up the view
|
// Start to set up the view
|
||||||
view = new AndroidGLSurfaceView(JmeAndroidSystem.getActivity().getApplication());
|
view = new AndroidGLSurfaceView(JmeAndroidSystem.getActivity().getApplication());
|
||||||
if (androidInput == null) {
|
if (androidInput == null) {
|
||||||
androidInput = new AndroidInput();
|
androidInput = new AndroidInputHandler();
|
||||||
}
|
}
|
||||||
androidInput.setView(view);
|
androidInput.setView(view);
|
||||||
androidInput.loadSettings(settings);
|
androidInput.loadSettings(settings);
|
||||||
@ -394,6 +395,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
|||||||
editTextDialogInput.setHeight(LayoutParams.FILL_PARENT);
|
editTextDialogInput.setHeight(LayoutParams.FILL_PARENT);
|
||||||
editTextDialogInput.setPadding(20, 20, 20, 20);
|
editTextDialogInput.setPadding(20, 20, 20, 20);
|
||||||
editTextDialogInput.setGravity(Gravity.FILL_HORIZONTAL);
|
editTextDialogInput.setGravity(Gravity.FILL_HORIZONTAL);
|
||||||
|
//editTextDialogInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
|
||||||
|
|
||||||
editTextDialogInput.setText(initialValue);
|
editTextDialogInput.setText(initialValue);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user