@Override public void invoke(long window, int codepoint) { if ((codepoint & 0xff00) == 0xf700) return; lastCharacter = (char)codepoint; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped((char)codepoint); } };
@Override public void invoke(long window, int codepoint) { if ((codepoint & 0xff00) == 0xf700) return; lastCharacter = (char)codepoint; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped((char)codepoint); } };
@Override public void invoke(long window, int key, int scancode, int action, int mods) { switch (action) { case GLFW.GLFW_PRESS: key = getGdxKeyCode(key); eventQueue.keyDown(key); pressedKeys++; keyJustPressed = true; justPressedKeys[key] = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); lastCharacter = 0; char character = characterForKeyCode(key); if (character != 0) charCallback.invoke(window, character); break; case GLFW.GLFW_RELEASE: pressedKeys--; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyUp(getGdxKeyCode(key)); break; case GLFW.GLFW_REPEAT: if (lastCharacter != 0) { Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped(lastCharacter); } break; } } };
@Override public void invoke(long window, int key, int scancode, int action, int mods) { switch (action) { case GLFW.GLFW_PRESS: key = getGdxKeyCode(key); eventQueue.keyDown(key); pressedKeys++; keyJustPressed = true; justPressedKeys[key] = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); lastCharacter = 0; char character = characterForKeyCode(key); if (character != 0) charCallback.invoke(window, character); break; case GLFW.GLFW_RELEASE: pressedKeys--; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyUp(getGdxKeyCode(key)); break; case GLFW.GLFW_REPEAT: if (lastCharacter != 0) { Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped(lastCharacter); } break; } } };
@Override public void invoke(long window, int codepoint) { if ((codepoint & 0xff00) == 0xf700) return; lastCharacter = (char)codepoint; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped((char)codepoint); } };
@Override public void invoke(long window, int key, int scancode, int action, int mods) { switch (action) { case GLFW.GLFW_PRESS: key = getGdxKeyCode(key); eventQueue.keyDown(key); pressedKeys++; keyJustPressed = true; justPressedKeys[key] = true; Lwjgl3Input.this.window.getGraphics().requestRendering(); lastCharacter = 0; char character = characterForKeyCode(key); if (character != 0) charCallback.invoke(window, character); break; case GLFW.GLFW_RELEASE: pressedKeys--; Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyUp(getGdxKeyCode(key)); break; case GLFW.GLFW_REPEAT: if (lastCharacter != 0) { Lwjgl3Input.this.window.getGraphics().requestRendering(); eventQueue.keyTyped(lastCharacter); } break; } } };