From 67aa8343692d26abd7858311034fe64d326de314 Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Fri, 22 Nov 2013 13:07:43 +0000 Subject: [PATCH] Android: Add onHover events to TouchEvent. Not implemented yet. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10906 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../core/com/jme3/input/event/TouchEvent.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/engine/src/core/com/jme3/input/event/TouchEvent.java b/engine/src/core/com/jme3/input/event/TouchEvent.java index 23038b99f..f8463d48c 100644 --- a/engine/src/core/com/jme3/input/event/TouchEvent.java +++ b/engine/src/core/com/jme3/input/event/TouchEvent.java @@ -64,6 +64,22 @@ public class TouchEvent extends InputEvent { TAP, DOUBLETAP, LONGPRESSED, + /** + * Finger started hovering over the screen without touching + * Requires Android OS rev 14 or higher (Android 4.0 or higher) + */ + HOVER_START, + /** + * Finger moved while still hovering over the screen without touching + * Requires Android OS rev 14 or higher (Android 4.0 or higher) + */ + HOVER_MOVE, + /** + * Finger was pulled away from the screen or touched the screen + * Requires Android OS rev 14 or higher (Android 4.0 or higher) + */ + HOVER_END, + // Two finger scale events /** * Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan