1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Add arrow keys to gamma test

This commit is contained in:
Camilla Berglund 2016-05-23 15:16:53 +02:00
parent edb284f189
commit 0a668be1bf

View File

@ -75,6 +75,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
}
case GLFW_KEY_KP_ADD:
case GLFW_KEY_UP:
case GLFW_KEY_Q:
{
set_gamma(window, gamma_value + STEP_SIZE);
@ -82,6 +83,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
}
case GLFW_KEY_KP_SUBTRACT:
case GLFW_KEY_DOWN:
case GLFW_KEY_W:
{
if (gamma_value - STEP_SIZE > 0.f)