public boolean isKeyDown(final KeyboardKeys key) { return glfwGetKey(getWindowID(), key.getKeyCode()) == GLFW_PRESS; }
public boolean isKeyReleased(final KeyboardKeys key) { return !isKeyDown(key) && keyStatesPreviousCycle[key.getKeyCode()]; }
@Override protected void storeStatesForNextCycle() { for (KeyboardKeys key : KeyboardKeys.values()) { keyStatesPreviousCycle[key.getKeyCode()] = isKeyDown(key); } }