Skip to content

Commit

Permalink
ADD raw mouse motion
Browse files Browse the repository at this point in the history
  • Loading branch information
SaumonDesMers authored and afaure42 committed Feb 22, 2024
1 parent 0995c95 commit 3c2382c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/threads/update/UpdateThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UpdateThread : public AThreadWrapper
int m_left_shift_key;

float m_camera_speed = 1.0f;
float m_camera_sensitivity = 0.1f;
float m_camera_sensitivity = 0.05f;
double m_mouse_x;
double m_mouse_y;
double m_last_mouse_x;
Expand Down
2 changes: 2 additions & 0 deletions src/app/window/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Input::Input(GLFWwindow* glfwWindow):
glfwSetKeyCallback(m_window, keyCallback);
glfwSetMouseButtonCallback(m_window, mouseButtonCallback);
glfwSetCursorPosCallback(m_window, cursorPosCallback);

glfwSetInputMode(m_window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE);
}

Input::~Input()
Expand Down

0 comments on commit 3c2382c

Please sign in to comment.