@Override public void invoke(long window, int button, int action, int mods) { int gdxButton = toGdxButton(button); if (button != -1 && gdxButton == -1) return; if (action == GLFW.GLFW_PRESS) { mousePressed++; justTouched = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchDown(mouseX, mouseY, 0, gdxButton); } else { mousePressed = Math.max(0, mousePressed - 1); Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchUp(mouseX, mouseY, 0, gdxButton); } }
@Override public void invoke(long window, int button, int action, int mods) { int gdxButton = toGdxButton(button); if (button != -1 && gdxButton == -1) return; if (action == GLFW.GLFW_PRESS) { mousePressed++; justTouched = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchDown(mouseX, mouseY, 0, gdxButton); } else { mousePressed = Math.max(0, mousePressed - 1); Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchUp(mouseX, mouseY, 0, gdxButton); } }
@Override public void invoke(long window, int button, int action, int mods) { int gdxButton = toGdxButton(button); if (button != -1 && gdxButton == -1) return; if (action == GLFW.GLFW_PRESS) { mousePressed++; justTouched = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchDown(mouseX, mouseY, 0, gdxButton); } else { mousePressed = Math.max(0, mousePressed - 1); Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.touchUp(mouseX, mouseY, 0, gdxButton); } }