Class AndroidInputHandler14

java.lang.Object
com.jme3.input.android.AndroidInputHandler
com.jme3.input.android.AndroidInputHandler14
All Implemented Interfaces:
android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnTouchListener

public class AndroidInputHandler14 extends AndroidInputHandler implements android.view.View.OnHoverListener, android.view.View.OnGenericMotionListener
AndroidInputHandler14 extends AndroidInputHandler to add the onHover and onGenericMotion events that where added in Android rev 14 (Android 4.0).
The onGenericMotion events are the main interface to Joystick axes. They were actually released in Android rev 12.
  • Constructor Details

    • AndroidInputHandler14

      public AndroidInputHandler14()
  • Method Details

    • removeListeners

      protected void removeListeners(android.opengl.GLSurfaceView view)
      Overrides:
      removeListeners in class AndroidInputHandler
    • addListeners

      protected void addListeners(android.opengl.GLSurfaceView view)
      Overrides:
      addListeners in class AndroidInputHandler
    • onHover

      public boolean onHover(android.view.View view, android.view.MotionEvent event)
      Specified by:
      onHover in interface android.view.View.OnHoverListener
    • onGenericMotion

      public boolean onGenericMotion(android.view.View view, android.view.MotionEvent event)
      Specified by:
      onGenericMotion in interface android.view.View.OnGenericMotionListener
    • onKey

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