Преглед на файлове

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

Daniel Johansson преди 10 години
родител
ревизия
c375974a9a

+ 1 - 2
jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwKeyInput.java

@@ -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);
     }
 }

+ 1 - 2
jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwMouseInput.java

@@ -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) {