diff --git a/engine/src/lwjgl-ogl/com/jme3/input/lwjgl/LwjglMouseInput.java b/engine/src/lwjgl-ogl/com/jme3/input/lwjgl/LwjglMouseInput.java index f41c5cc00..843c7883c 100644 --- a/engine/src/lwjgl-ogl/com/jme3/input/lwjgl/LwjglMouseInput.java +++ b/engine/src/lwjgl-ogl/com/jme3/input/lwjgl/LwjglMouseInput.java @@ -114,11 +114,13 @@ public class LwjglMouseInput implements MouseInput { if (xDelta != 0 || yDelta != 0 || wheelDelta != 0){ MouseMotionEvent evt = new MouseMotionEvent(x, y, xDelta, yDelta, curWheel, wheelDelta); + evt.setTime(Mouse.getEventNanoseconds()); listener.onMouseMotionEvent(evt); } if (btn != -1){ MouseButtonEvent evt = new MouseButtonEvent(btn, Mouse.getEventButtonState(), x, y); + evt.setTime(Mouse.getEventNanoseconds()); listener.onMouseButtonEvent(evt); } }