Fixed a compiler error where glfw input classes wanted to use the old LwjglTimer class.

This commit is contained in:
Daniel Johansson 2015-09-17 14:48:02 +01:00
parent 30cdca7ad7
commit c375974a9a
2 changed files with 2 additions and 4 deletions

View File

@ -35,7 +35,6 @@ package com.jme3.input.lwjgl;
import com.jme3.input.KeyInput;
import com.jme3.input.RawInputListener;
import com.jme3.input.event.KeyInputEvent;
import com.jme3.system.lwjgl.LwjglTimer;
import com.jme3.system.lwjgl.LwjglWindow;
import org.lwjgl.glfw.GLFWKeyCallback;
@ -112,6 +111,6 @@ public class GlfwKeyInput implements KeyInput {
}
public long getInputTimeNanos() {
return (long) (glfwGetTime() * LwjglTimer.LWJGL_TIME_TO_NANOS);
return (long) (glfwGetTime() * 1000000000);
}
}

View File

@ -37,7 +37,6 @@ import com.jme3.input.MouseInput;
import com.jme3.input.RawInputListener;
import com.jme3.input.event.MouseButtonEvent;
import com.jme3.input.event.MouseMotionEvent;
import com.jme3.system.lwjgl.LwjglTimer;
import com.jme3.system.lwjgl.LwjglWindow;
import org.lwjgl.glfw.GLFWCursorPosCallback;
import org.lwjgl.glfw.GLFWMouseButtonCallback;
@ -183,7 +182,7 @@ public class GlfwMouseInput implements MouseInput {
}
public long getInputTimeNanos() {
return (long) (glfwGetTime() * LwjglTimer.LWJGL_TIME_TO_NANOS);
return (long) (glfwGetTime() * 1000000000);
}
public void setNativeCursor(final JmeCursor jmeCursor) {