This commit is contained in:
khanhduytran0 2020-10-17 11:16:14 +07:00
parent efe04ce8d3
commit 615dd370a1

View File

@ -163,6 +163,7 @@ int diffX, diffY, logTimes;
JNIEXPORT void JNICALL Java_org_lwjgl_glfw_GLFW_nglfwPollEvents(JNIEnv* env, jclass clazz) {
if (!isInputReady) isInputReady = true;
if (isUsePushPollCall) {
LOGI("Mouse pos curr! x=%d, y=%d; Input length=%d", lastCursorX, lastCursorY, glfwInputEventIndex);
if (diffX != lastCursorX || diffY != lastCursorY) {
if (logTimes < 1000) {
logTimes++;