Android: getTouchInput() interface add

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7551 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
kim..ng 14 years ago
parent 384cdcff85
commit 2768e68c3a
  1. 4
      engine/src/test/jme3test/gui/TestBitmapFont.java
  2. 3
      engine/src/test/jme3test/gui/TestSoftwareMouse.java
  3. 2
      engine/src/test/jme3test/niftygui/TestNiftyGui.java

@ -48,6 +48,7 @@ import com.jme3.input.event.JoyButtonEvent;
import com.jme3.input.event.KeyInputEvent;
import com.jme3.input.event.MouseButtonEvent;
import com.jme3.input.event.MouseMotionEvent;
import com.jme3.input.event.TouchEvent;
public class TestBitmapFont extends SimpleApplication {
@ -132,6 +133,9 @@ public class TestBitmapFont extends SimpleApplication {
@Override
public void beginInput() { }
@Override
public void onTouchEvent(TouchEvent evt) { }
};
}

@ -39,6 +39,7 @@ import com.jme3.input.event.JoyButtonEvent;
import com.jme3.input.event.KeyInputEvent;
import com.jme3.input.event.MouseButtonEvent;
import com.jme3.input.event.MouseMotionEvent;
import com.jme3.input.event.TouchEvent;
import com.jme3.math.FastMath;
import com.jme3.system.AppSettings;
import com.jme3.texture.Texture;
@ -77,6 +78,8 @@ public class TestSoftwareMouse extends SimpleApplication {
}
public void onKeyEvent(KeyInputEvent evt) {
}
public void onTouchEvent(TouchEvent evt) {
}
};
public static void main(String[] args){

@ -68,7 +68,7 @@ public class TestNiftyGui extends SimpleApplication implements ScreenController
guiViewPort);
nifty = niftyDisplay.getNifty();
nifty.fromXml("jme3test/niftygui/hellojme.xml", "start", this);
nifty.fromXml("Tests/hellojme.xml", "start", this);
// attach the nifty display to the gui view port as a processor
guiViewPort.addProcessor(niftyDisplay);

Loading…
Cancel
Save