- 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
3.0
rem..om 13 years ago
parent 653cc6440c
commit cc7701aa0d
  1. 3
      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);
}

Loading…
Cancel
Save