Package com.jme3.input.android
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
AndroidInputHandler14extendsAndroidInputHandlerto 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.- Author:
- iwgeric
-
-
Field Summary
-
Fields inherited from class com.jme3.input.android.AndroidInputHandler
joyInput, touchInput, view
-
-
Constructor Summary
Constructors Constructor Description AndroidInputHandler14()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddListeners(android.opengl.GLSurfaceView view)booleanonGenericMotion(android.view.View view, android.view.MotionEvent event)booleanonHover(android.view.View view, android.view.MotionEvent event)booleanonKey(android.view.View view, int keyCode, android.view.KeyEvent event)protected voidremoveListeners(android.opengl.GLSurfaceView view)-
Methods inherited from class com.jme3.input.android.AndroidInputHandler
getJoyInput, getTouchInput, getView, loadSettings, onTouch, setView
-
-
-
-
Method Detail
-
removeListeners
protected void removeListeners(android.opengl.GLSurfaceView view)
- Overrides:
removeListenersin classAndroidInputHandler
-
addListeners
protected void addListeners(android.opengl.GLSurfaceView view)
- Overrides:
addListenersin classAndroidInputHandler
-
onHover
public boolean onHover(android.view.View view, android.view.MotionEvent event)- Specified by:
onHoverin interfaceandroid.view.View.OnHoverListener
-
onGenericMotion
public boolean onGenericMotion(android.view.View view, android.view.MotionEvent event)- Specified by:
onGenericMotionin interfaceandroid.view.View.OnGenericMotionListener
-
onKey
public boolean onKey(android.view.View view, int keyCode, android.view.KeyEvent event)- Specified by:
onKeyin interfaceandroid.view.View.OnKeyListener- Overrides:
onKeyin classAndroidInputHandler
-
-