Class AndroidInputHandler

java.lang.Object
com.jme3.input.android.AndroidInputHandler
All Implemented Interfaces:
android.view.View.OnKeyListener, android.view.View.OnTouchListener
Direct Known Subclasses:
AndroidInputHandler14

public class AndroidInputHandler extends Object implements android.view.View.OnTouchListener, android.view.View.OnKeyListener
AndroidInput is the main class that connects the Android system inputs to jME. It receives the inputs from the Android View and passes them to the appropriate classes based on the source of the input.
This class is to be extended when new functionality is released in Android.
  • Field Details Link icon

  • Constructor Details Link icon

    • AndroidInputHandler Link icon

      public AndroidInputHandler()
  • Method Details Link icon

    • setView Link icon

      public void setView(android.view.View view)
    • getView Link icon

      public android.view.View getView()
    • removeListeners Link icon

      protected void removeListeners(android.opengl.GLSurfaceView view)
    • addListeners Link icon

      protected void addListeners(android.opengl.GLSurfaceView view)
    • loadSettings Link icon

      public void loadSettings(AppSettings settings)
    • getTouchInput Link icon

      public TouchInput getTouchInput()
    • getJoyInput Link icon

      public JoyInput getJoyInput()
    • onTouch Link icon

      public boolean onTouch(android.view.View view, android.view.MotionEvent event)
      Specified by:
      onTouch in interface android.view.View.OnTouchListener
    • onKey Link icon

      public boolean onKey(android.view.View view, int keyCode, android.view.KeyEvent event)
      Specified by:
      onKey in interface android.view.View.OnKeyListener