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
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.
-
Field Summary
Fields inherited from class com.jme3.input.android.AndroidInputHandler
joyInput, touchInput, view
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addListeners
(android.opengl.GLSurfaceView view) boolean
onGenericMotion
(android.view.View view, android.view.MotionEvent event) boolean
onHover
(android.view.View view, android.view.MotionEvent event) boolean
onKey
(android.view.View view, int keyCode, android.view.KeyEvent event) protected void
removeListeners
(android.opengl.GLSurfaceView view) Methods inherited from class com.jme3.input.android.AndroidInputHandler
getJoyInput, getTouchInput, getView, loadSettings, onTouch, setView
-
Constructor Details
-
AndroidInputHandler14
public AndroidInputHandler14()
-
-
Method Details
-
removeListeners
protected void removeListeners(android.opengl.GLSurfaceView view) - Overrides:
removeListeners
in classAndroidInputHandler
-
addListeners
protected void addListeners(android.opengl.GLSurfaceView view) - Overrides:
addListeners
in classAndroidInputHandler
-
onHover
public boolean onHover(android.view.View view, android.view.MotionEvent event) - Specified by:
onHover
in interfaceandroid.view.View.OnHoverListener
-
onGenericMotion
public boolean onGenericMotion(android.view.View view, android.view.MotionEvent event) - Specified by:
onGenericMotion
in interfaceandroid.view.View.OnGenericMotionListener
-
onKey
public boolean onKey(android.view.View view, int keyCode, android.view.KeyEvent event) - Specified by:
onKey
in interfaceandroid.view.View.OnKeyListener
- Overrides:
onKey
in classAndroidInputHandler
-