From 1df1cf0244a84dbea6798c50617a71d154660b6e Mon Sep 17 00:00:00 2001 From: Fatbag Date: Sun, 5 Feb 2012 21:17:48 -0600 Subject: [PATCH] Flipped z/x and up/down keyboard buttons into the correct places on the libvitaboy renderer. --- Libraries/libvitaboy/Renderer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/libvitaboy/Renderer.cpp b/Libraries/libvitaboy/Renderer.cpp index fce2b49..f0cebfb 100644 --- a/Libraries/libvitaboy/Renderer.cpp +++ b/Libraries/libvitaboy/Renderer.cpp @@ -87,14 +87,14 @@ int InitGL(void) // All Setup For OpenGL Goes Here int DrawGLScene(void) // Here's Where We Do All The Drawing { - if(keys[0x41]){ if(zoom <=-1.0f) zoom += 0.05f; } //A - if(keys[0x53]){ if(zoom >=-10.0f) zoom -= 0.05f; } //S - if(keys[VK_UP]){ if((xrot+=1.0f) >=360) xrot-=360; } - if(keys[VK_DOWN]){ if((xrot-=1.0f) <=-360) xrot+=360; } - if(keys[VK_RIGHT]){ if((yrot+=1.0f) >=360) yrot-=360; } + if(keys['A']){ if(zoom <=-1.0f) zoom+=0.05f; } + if(keys['S']){ if(zoom >=-10.0f) zoom-=0.05f; } + if(keys[VK_UP]){ if((xrot-=1.0f) <=-360) xrot+=360; } + if(keys[VK_DOWN]){ if((xrot+=1.0f) >=360) xrot-=360; } if(keys[VK_LEFT]){ if((yrot-=1.0f) <=-360) yrot+=360; } - if(keys[0x5A]){ if((zrot+=1.0f) >=360) zrot-=360; } //X - if(keys[0x58]){ if((zrot-=1.0f) <=-360) zrot+=360; } //Z + if(keys[VK_RIGHT]){ if((yrot+=1.0f) >=360) yrot-=360; } + if(keys['X']){ if((zrot-=1.0f) <=-360) zrot+=360; } + if(keys['Z']){ if((zrot+=1.0f) >=360) zrot-=360; } glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer glLoadIdentity(); // Reset The Current Modelview Matrix