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).joyInput, touchInput, view
Constructor and Description |
---|
AndroidInputHandler14() |
Modifier and Type | Method and Description |
---|---|
protected 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) |
getJoyInput, getTouchInput, getView, loadSettings, onTouch, setView
protected void removeListeners(android.opengl.GLSurfaceView view)
removeListeners
in class AndroidInputHandler
protected void addListeners(android.opengl.GLSurfaceView view)
addListeners
in class AndroidInputHandler
public boolean onHover(android.view.View view, android.view.MotionEvent event)
onHover
in interface android.view.View.OnHoverListener
public boolean onGenericMotion(android.view.View view, android.view.MotionEvent event)
onGenericMotion
in interface android.view.View.OnGenericMotionListener
public boolean onKey(android.view.View view, int keyCode, android.view.KeyEvent event)
onKey
in interface android.view.View.OnKeyListener
onKey
in class AndroidInputHandler