Fixed a compiler error where glfw input classes wanted to use the old LwjglTimer class.
This commit is contained in:
parent
30cdca7ad7
commit
c375974a9a
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user