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_KP_ADD:
case GLFW_KEY_UP:
case GLFW_KEY_Q: case GLFW_KEY_Q:
{ {
set_gamma(window, gamma_value + STEP_SIZE); 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_KP_SUBTRACT:
case GLFW_KEY_DOWN:
case GLFW_KEY_W: case GLFW_KEY_W:
{ {
if (gamma_value - STEP_SIZE > 0.f) if (gamma_value - STEP_SIZE > 0.f)