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

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10906 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
iwg..ic 11 years ago
parent a1dee924f6
commit 67aa834369
  1. 16
      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

Loading…
Cancel
Save