Fixed key names in the example and test programs.

This commit is contained in:
Marcus
2011-01-03 22:22:14 +01:00
parent 3b0084799c
commit e3cb563a28
13 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -220,13 +220,13 @@ void key( GLFWwindow window, int k, int action )
if( action != GLFW_PRESS ) return;
switch (k) {
case 'Z':
if( glfwGetKey( window, GLFW_KEY_LSHIFT ) )
case GLFW_KEY_Z:
if( glfwGetKey( window, GLFW_KEY_LEFT_SHIFT ) )
view_rotz -= 5.0;
else
view_rotz += 5.0;
break;
case GLFW_KEY_ESC:
case GLFW_KEY_ESCAPE:
running = 0;
break;
case GLFW_KEY_UP: