Ver Fonte

Android: Add onHover events to TouchEvent. Not implemented yet.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10906 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
iwg..ic há 12 anos atrás
pai
commit
67aa834369
1 ficheiros alterados com 16 adições e 0 exclusões
  1. 16 0
      engine/src/core/com/jme3/input/event/TouchEvent.java

+ 16 - 0
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