GLFW camera input
OpenGL C++ Beginners-
y0l0000Likes 0Problem Description
I want to do something when the key is released, so I put it
if (glfwGetKey(window, GLFW_KEY_UP))
{
if (glfwGetKey(window, GLFW_KEY_UP) == GLFW_PRESS)
{
cout << "press" << glGetString(GL_VERSION) << endl;
}
else if (glfwGetKey(window, GLFW_KEY_UP) == GLFW_RELEASE)
{
cout << "release" << glGetString(GL_VERSION) << endl;
}}
But it never print "release" after I released the key. May I know what's the error done here?
Login to reply