Skip to content
Snippets Groups Projects
Commit 1b419466 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add mouse speed control in GUI

parent 900b4daf
No related branches found
No related tags found
No related merge requests found
Pipeline #32057 passed
......@@ -200,8 +200,9 @@ bool CameraView3D::keyboardCharacterEvent(unsigned int codepoint) {
}
Eigen::Matrix4d CameraView3D::getUpdatedPose() {
float rrx = ((float)ry_ * 0.2f * delta_);
float rry = (float)rx_ * 0.2f * delta_;
float mspeed = ctrl_->value("mouse_speed", 0.2f);
float rrx = ((float)ry_ * mspeed * delta_);
float rry = (float)rx_ * mspeed * delta_;
float rrz = 0.0;
Eigen::Affine3d r = create_rotation_matrix(rrx, -rry, rrz);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment