This commit is contained in:
artdeell 2023-03-03 21:16:58 +03:00
parent 37141124c6
commit 137abe65bf

View File

@ -150,7 +150,6 @@ void handleFramebufferSizeJava(long window, int w, int h) {
void pojavPumpEvents(void* window) {
//__android_log_print(ANDROID_LOG_INFO, "input_bridge_v3", "pojavPumpEvents %d", eventCounter);
size_t counter = atomic_load_explicit(&eventCounter, memory_order_acquire);
__android_log_print(ANDROID_LOG_INFO, "NativeInput", "Pumping %i events (window=%p)", counter, window);
for(size_t i = 0; i < counter; i++) {
GLFWInputEvent event = events[i];
switch(event.type) {
@ -217,7 +216,6 @@ Java_org_lwjgl_glfw_GLFW_glfwSetCursorPos(JNIEnv *env, jclass clazz, jlong windo
void sendData(int type, int i1, int i2, int i3, int i4) {
__android_log_print(ANDROID_LOG_INFO, "NativeInput", "Submitting event %d (%d %d %d %d)", type, i1, i2, i3, i4);
if(type == EVENT_TYPE_CURSOR_POS) {
cursorX = i1;
cursorY = i2;