Esempio n. 1
0
void playKey_callback(GLFWwindow* window)
{
	//Recognizing if the player wants to move its character
	if (glfwGetKey(window, GLFW_KEY_UP))
	{
		geko.moveForward();
	}
	if (glfwGetKey(window, GLFW_KEY_DOWN))
	{
		geko.moveBackward();
	}
	if (glfwGetKey(window, GLFW_KEY_RIGHT))
	{
		geko.moveRight();
	}
	if (glfwGetKey(window, GLFW_KEY_LEFT))
	{
		geko.moveLeft();
	}

}