Merge pull request #133 from linkmauve/cube-directions

Use more sensible input to move the cube in the gpu example
This commit is contained in:
fincs 2015-06-28 19:01:53 +02:00
commit 585f84276a

View File

@ -274,10 +274,10 @@ int main(int argc, char** argv)
if(keysHeld()&KEY_B)lightAngle-=0.1f; if(keysHeld()&KEY_B)lightAngle-=0.1f;
//D-PAD to rotate object //D-PAD to rotate object
if(keysHeld()&KEY_RIGHT)angle.x+=0.05f; if(keysHeld()&KEY_DOWN)angle.x+=0.05f;
if(keysHeld()&KEY_LEFT)angle.x-=0.05f; if(keysHeld()&KEY_UP)angle.x-=0.05f;
if(keysHeld()&KEY_UP)angle.y+=0.05f; if(keysHeld()&KEY_LEFT)angle.y+=0.05f;
if(keysHeld()&KEY_DOWN)angle.y-=0.05f; if(keysHeld()&KEY_RIGHT)angle.y-=0.05f;
//R/L to bring object closer to or move it further from the camera //R/L to bring object closer to or move it further from the camera
if(keysHeld()&KEY_R)position.z+=0.1f; if(keysHeld()&KEY_R)position.z+=0.1f;