+ case STATE_LIGHT_1_MOVE:\r
+ case STATE_LIGHT_2_MOVE:\r
+ ; // Semi-colon required to allow variable declaration below\r
+ \r
+ int i = 0;\r
+ if ( manipulateState == STATE_LIGHT_2_MOVE ) i = 1;\r
+\r
+ if ( buttonSelected == GLUT_LEFT_BUTTON ) {\r
+ // w: left/right, h: near/far\r
+ float angler = 2 * M_PI * ( (rotate*camRotateFactor)/360.0 );\r
+ lightObjs[i].position[0] += diffx * cos(angler) * lleftrightFactor + diffy * cos(M_PI/2 + angler) * lnearfarFactor;\r
+ lightObjs[i].position[2] += diffx * sin(angler) * lleftrightFactor + diffy * sin(M_PI/2 + angler) * lnearfarFactor;\r
+\r
+ } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
+ // w: increase/decrease some light param\r
+ // **NOTE: Currently not implemented\r
+\r
+ // h: up/down\r
+ lightObjs[i].position[1] -= diffy * updownFactor;\r
+ }\r
+\r
+ break;\r
+\r