update
This commit is contained in:
parent
0dc5cb034a
commit
903557dc6a
Binary file not shown.
|
@ -1 +1 @@
|
|||
1690210589680
|
||||
1690212623003
|
|
@ -4376,7 +4376,8 @@ public class GLFW {
|
|||
*/
|
||||
@NativeType("uint64_t")
|
||||
public static long glfwGetTimerFrequency() {
|
||||
return 60;
|
||||
long __functionAddress = Functions.GetTimerFrequency;
|
||||
return invokeJ(__functionAddress);
|
||||
}
|
||||
|
||||
// --- [ glfwMakeContextCurrent ] ---
|
||||
|
|
|
@ -141,12 +141,13 @@ public class GLFWInputImplementation implements InputImplementation {
|
|||
}
|
||||
|
||||
public void setCursorPos(int x, int y, long nanos) {
|
||||
y = transformY(y);
|
||||
if (correctCursor) {
|
||||
last_x = x;
|
||||
last_y = transformY(y);
|
||||
last_y = y;
|
||||
correctCursor = false;
|
||||
} else {
|
||||
y = transformY(y);
|
||||
return;
|
||||
}
|
||||
int dx = x - last_x;
|
||||
int dy = y - last_y;
|
||||
if (dx != 0 || dy != 0) {
|
||||
|
@ -161,7 +162,6 @@ public class GLFWInputImplementation implements InputImplementation {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void putMouseEventWithCoords(byte button, byte state, int x, int y, int z, long nanos) {
|
||||
eventBuffer.clear();
|
||||
|
|
Loading…
Reference in New Issue