public class AndroidTouchInput
extends java.lang.Object
implements com.jme3.input.TouchInput
| Modifier and Type | Field and Description |
|---|---|
protected AndroidInputHandler |
androidInput |
protected int |
numPointers |
| Constructor and Description |
|---|
AndroidTouchInput(AndroidInputHandler androidInput) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(com.jme3.input.event.InputEvent event) |
void |
destroy() |
com.jme3.input.event.InputEvent |
generateMouseEvent(com.jme3.input.event.TouchEvent event) |
protected int |
getAction(android.view.MotionEvent event) |
com.jme3.input.event.TouchEvent |
getFreeTouchEvent() |
android.view.GestureDetector |
getGestureDetector() |
long |
getInputTimeNanos() |
float |
getJmeX(float origX) |
float |
getJmeY(float origY) |
protected int |
getPointerId(android.view.MotionEvent event) |
protected int |
getPointerIndex(android.view.MotionEvent event) |
android.view.ScaleGestureDetector |
getScaleDetector() |
void |
initialize() |
float |
invertX(float origX) |
float |
invertY(float origY) |
boolean |
isInitialized() |
boolean |
isMouseEventsInvertX() |
boolean |
isMouseEventsInvertY() |
boolean |
isSimulateKeyboard() |
boolean |
isSimulateMouse() |
void |
loadSettings(com.jme3.system.AppSettings settings) |
boolean |
onKey(android.view.KeyEvent event) |
boolean |
onTouch(android.view.MotionEvent event) |
void |
setGestureDetector(android.view.GestureDetector gestureDetector) |
void |
setInputListener(com.jme3.input.RawInputListener listener) |
void |
setOmitHistoricEvents(boolean dontSendHistory) |
void |
setScaleDetector(android.view.ScaleGestureDetector scaleDetector) |
void |
setSimulateKeyboard(boolean simulate) |
void |
setSimulateMouse(boolean simulate) |
void |
update() |
protected int numPointers
protected AndroidInputHandler androidInput
public AndroidTouchInput(AndroidInputHandler androidInput)
public android.view.GestureDetector getGestureDetector()
public void setGestureDetector(android.view.GestureDetector gestureDetector)
public android.view.ScaleGestureDetector getScaleDetector()
public void setScaleDetector(android.view.ScaleGestureDetector scaleDetector)
public float invertX(float origX)
public float invertY(float origY)
public float getJmeX(float origX)
public float getJmeY(float origY)
public void loadSettings(com.jme3.system.AppSettings settings)
protected int getPointerIndex(android.view.MotionEvent event)
protected int getPointerId(android.view.MotionEvent event)
protected int getAction(android.view.MotionEvent event)
public boolean onTouch(android.view.MotionEvent event)
public com.jme3.input.event.InputEvent generateMouseEvent(com.jme3.input.event.TouchEvent event)
public boolean onKey(android.view.KeyEvent event)
public void initialize()
initialize in interface com.jme3.input.Inputpublic void destroy()
destroy in interface com.jme3.input.Inputpublic boolean isInitialized()
isInitialized in interface com.jme3.input.Inputpublic void setInputListener(com.jme3.input.RawInputListener listener)
setInputListener in interface com.jme3.input.Inputpublic long getInputTimeNanos()
getInputTimeNanos in interface com.jme3.input.Inputpublic void update()
update in interface com.jme3.input.Inputpublic com.jme3.input.event.TouchEvent getFreeTouchEvent()
public void addEvent(com.jme3.input.event.InputEvent event)
public void setSimulateMouse(boolean simulate)
setSimulateMouse in interface com.jme3.input.TouchInputpublic boolean isSimulateMouse()
isSimulateMouse in interface com.jme3.input.TouchInputpublic boolean isMouseEventsInvertX()
public boolean isMouseEventsInvertY()
public void setSimulateKeyboard(boolean simulate)
setSimulateKeyboard in interface com.jme3.input.TouchInputpublic boolean isSimulateKeyboard()
isSimulateKeyboard in interface com.jme3.input.TouchInputpublic void setOmitHistoricEvents(boolean dontSendHistory)
setOmitHistoricEvents in interface com.jme3.input.TouchInput