diff --git a/RubixCube/RubixCube.pde b/RubixCube/RubixCube.pde index 6813b11..55752c4 100644 --- a/RubixCube/RubixCube.pde +++ b/RubixCube/RubixCube.pde @@ -382,16 +382,16 @@ void keyPressed() { float spinVal = PI/2; switch(keyCode) { case RIGHT: - yRotationKey +=spinVal; + yRotationKeyTarget +=spinVal; break; case LEFT: - yRotationKey -=spinVal; + yRotationKeyTarget -=spinVal; break; case UP: - xRotationKey +=spinVal; + xRotationKeyTarget +=spinVal; break; case DOWN: - xRotationKey -=spinVal; + xRotationKeyTarget -=spinVal; break; } }