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
Branches
No related tags found
No related merge requests found
Pipeline #32057 passed
...@@ -200,8 +200,9 @@ bool CameraView3D::keyboardCharacterEvent(unsigned int codepoint) { ...@@ -200,8 +200,9 @@ bool CameraView3D::keyboardCharacterEvent(unsigned int codepoint) {
} }
Eigen::Matrix4d CameraView3D::getUpdatedPose() { Eigen::Matrix4d CameraView3D::getUpdatedPose() {
float rrx = ((float)ry_ * 0.2f * delta_); float mspeed = ctrl_->value("mouse_speed", 0.2f);
float rry = (float)rx_ * 0.2f * delta_; float rrx = ((float)ry_ * mspeed * delta_);
float rry = (float)rx_ * mspeed * delta_;
float rrz = 0.0; float rrz = 0.0;
Eigen::Affine3d r = create_rotation_matrix(rrx, -rry, rrz); 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.
Please register or to comment