Skip to content

Commit

Permalink
revert accidental change of spaceball sensitivity in test program
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsiomb committed Jul 10, 2024
1 parent 7a10002 commit 20b2eac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ void motion(int x, int y)

void sball_motion(int x, int y, int z)
{
torus_pos[0] += x * 0.0001f;
torus_pos[1] += y * 0.0001f;
torus_pos[2] -= z * 0.0001f;
torus_pos[0] += x * 0.001f;
torus_pos[1] += y * 0.001f;
torus_pos[2] -= z * 0.001f;
glutPostRedisplay();
}

Expand All @@ -281,7 +281,7 @@ void sball_rotate(int rx, int ry, int rz)
{
if(rx | ry | rz) {
float s = (float)rsqrt(rx * rx + ry * ry + rz * rz);
qrotate(torus_rot, 0.0001f / s, rx * s, ry * s, -rz * s);
qrotate(torus_rot, 0.001f / s, rx * s, ry * s, -rz * s);
glutPostRedisplay();
}
}
Expand Down

0 comments on commit 20b2eac

Please sign in to comment.