Package com.jme3.input.android
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 SummaryFieldsModifier and TypeFieldDescriptionprotected AndroidJoyInputprotected AndroidTouchInputprotected android.opengl.GLSurfaceView
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddListeners(android.opengl.GLSurfaceView view) android.view.ViewgetView()voidloadSettings(AppSettings settings) booleanonKey(android.view.View view, int keyCode, android.view.KeyEvent event) booleanonTouch(android.view.View view, android.view.MotionEvent event) protected voidremoveListeners(android.opengl.GLSurfaceView view) voidsetView(android.view.View view) 
- 
Field Details- 
viewprotected android.opengl.GLSurfaceView view
- 
touchInput
- 
joyInput
 
- 
- 
Constructor Details- 
AndroidInputHandlerpublic AndroidInputHandler()
 
- 
- 
Method Details- 
setViewpublic void setView(android.view.View view) 
- 
getViewpublic android.view.View getView()
- 
removeListenersprotected void removeListeners(android.opengl.GLSurfaceView view) 
- 
addListenersprotected void addListeners(android.opengl.GLSurfaceView view) 
- 
loadSettings
- 
getTouchInput
- 
getJoyInput
- 
onTouchpublic boolean onTouch(android.view.View view, android.view.MotionEvent event) - Specified by:
- onTouchin interface- android.view.View.OnTouchListener
 
- 
onKeypublic boolean onKey(android.view.View view, int keyCode, android.view.KeyEvent event) - Specified by:
- onKeyin interface- android.view.View.OnKeyListener
 
 
-