static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if(action != GLFW_PRESS) { appDelegate.AppKeyPressed(key,mouseEvent.lastX,mouseEvent.lastY); } }