Explorar o código

- InpuManager : Updated cursor pos on click, so that non android touch events can properly update cursor position.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8531 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om %!s(int64=14) %!d(string=hai) anos
pai
achega
cc7701aa0d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      engine/src/core/com/jme3/input/InputManager.java

+ 2 - 1
engine/src/core/com/jme3/input/InputManager.java

@@ -426,7 +426,8 @@ public class InputManager implements RawInputListener {
         if (!eventsPermitted) {
             throw new UnsupportedOperationException("MouseInput has raised an event at an illegal time.");
         }
-
+        //updating cursor pos on click, so that non android touch events can properly update cursor position.
+        cursorPos.set(evt.getX(), evt.getY());
         inputQueue.add(evt);
     }