mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
feat: enable raw mouse motion
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user