From 5135400a9f285895f1d608fa5f224f8337e840be Mon Sep 17 00:00:00 2001 From: "kim..ng" Date: Thu, 16 Jun 2011 17:51:45 +0000 Subject: [PATCH] added setOmitHistoricEvents(bool) to TouchInput git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7641 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/input/TouchInput.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/engine/src/core/com/jme3/input/TouchInput.java b/engine/src/core/com/jme3/input/TouchInput.java index 1d0ee2c38..fe38b8274 100644 --- a/engine/src/core/com/jme3/input/TouchInput.java +++ b/engine/src/core/com/jme3/input/TouchInput.java @@ -68,17 +68,24 @@ public interface TouchInput extends Input { /** - * Set whether mouse events should be generated + * Set if mouse events should be generated * * @param simulate if mouse events should be generated */ public void setSimulateMouse(boolean simulate); /** - * Set whether keyboard events should be generated + * Set if keyboard events should be generated * * @param simulate if keyboard events should be generated */ public void setSimulateKeyboard(boolean simulate); - + + /** + * Set if historic android events should be transmitted, can be used to get better performance and less mem + * see: http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalX%28int,%20int%29 + * @param dontSendHistory turn of historic events if true, false else and default + */ + public void setOmitHistoricEvents(boolean dontSendHistory); + } \ No newline at end of file