Skip to content

Commit 345792f

Browse files
committed
Invert vertical mouse movement
1 parent 32d9f1a commit 345792f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/controls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void computeMatricesFromInputs(){
5353

5454
// Compute new orientation
5555
horizontalAngle += mouseSpeed * float(1024/2 - xpos );
56-
verticalAngle += mouseSpeed * float( 768/2 - ypos );
56+
verticalAngle -= mouseSpeed * float( 768/2 - ypos );
5757

5858
if (verticalAngle < PI/2+0.01) {
5959
verticalAngle = PI/2+0.01;

0 commit comments

Comments
 (0)