Use more sensible input to move the cube in the gpu example.

This commit is contained in:
Emmanuel Gil Peyrot 2015-06-28 17:34:16 +01:00
parent ee210d1963
commit 986f1a7068

View File

@ -274,10 +274,10 @@ int main(int argc, char** argv)
if(keysHeld()&KEY_B)lightAngle-=0.1f;
//D-PAD to rotate object
if(keysHeld()&KEY_RIGHT)angle.x+=0.05f;
if(keysHeld()&KEY_LEFT)angle.x-=0.05f;
if(keysHeld()&KEY_UP)angle.y+=0.05f;
if(keysHeld()&KEY_DOWN)angle.y-=0.05f;
if(keysHeld()&KEY_DOWN)angle.x+=0.05f;
if(keysHeld()&KEY_UP)angle.x-=0.05f;
if(keysHeld()&KEY_LEFT)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
if(keysHeld()&KEY_R)position.z+=0.1f;