mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-15 14:51:21 +00:00
Flipped z/x and up/down keyboard buttons into the correct places on the libvitaboy renderer.
This commit is contained in:
parent
a134def031
commit
1df1cf0244
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue