Update cursorPos for TouchEvents so InputManager.getCursorPosition() returns the last touch location.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
iwg..ic 2013-09-13 16:52:30 +00:00
parent 123ccabaff
commit 1e3e14ba75

View File

@ -918,6 +918,7 @@ public class InputManager implements RawInputListener {
if (!eventsPermitted) { if (!eventsPermitted) {
throw new UnsupportedOperationException("TouchInput has raised an event at an illegal time."); throw new UnsupportedOperationException("TouchInput has raised an event at an illegal time.");
} }
cursorPos.set(evt.getX(), evt.getY());
inputQueue.add(evt); inputQueue.add(evt);
} }
} }