feat: enable raw mouse motion

This commit is contained in:
2026-03-21 14:26:45 +08:00
parent 08340f15d3
commit 3b839ad630
2 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ private:
float m_yaw = 0.0f;
float m_pitch = 0.0f;
float m_sensitivity = 0.05f;
float m_sensitivity = 0.15f;
float m_speed = 5.0f;

View File

@@ -46,7 +46,12 @@ void Window::init() {
glfwSetInputMode(m_window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
if (glfwRawMouseMotionSupported()) {
glfwSetInputMode(m_window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE);
} else {
LOG::warn("Don,t support Raw Mouse Motion");
}
//update_viewport();
}