Remove unneeded mjvScene argument from mjv_moveCamera.

PiperOrigin-RevId: 948204736
Change-Id: Ic9b116ce439b3153764af67c449a824aec1994dc
This commit is contained in:
Haroon Qureshi
2026-07-15 02:25:31 -07:00
committed by Copybara-Service
parent 6c78c8664e
commit fa36015bae
10 changed files with 32 additions and 25 deletions
+2 -2
View File
@@ -89,14 +89,14 @@ void mouse_move(GLFWwindow* window, double xpos, double ypos) {
}
// move camera
mjv_moveCamera(m, action, dx/height, dy/height, &scn, &cam);
mjv_moveCamera(m, action, dx/height, dy/height, &cam);
}
// scroll callback
void scroll(GLFWwindow* window, double xoffset, double yoffset) {
// emulate vertical mouse motion = 5% of window height
mjv_moveCamera(m, mjMOUSE_ZOOM, 0, -0.05*yoffset, &scn, &cam);
mjv_moveCamera(m, mjMOUSE_ZOOM, 0, -0.05*yoffset, &cam);
}