Skip to content

Commit

Permalink
Enable raw mouse input (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor6140 authored and xtreme8000 committed May 20, 2019
1 parent d88ca3e commit 931d1a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/window.c
Expand Up @@ -154,6 +154,9 @@ void window_init() {
glfwSetMouseButtonCallback(hud_window->impl,window_impl_mouseclick);
glfwSetScrollCallback(hud_window->impl,window_impl_mousescroll);
glfwSetCharCallback(hud_window->impl,window_impl_textinput);

if(glfwRawMouseMotionSupported())
glfwSetInputMode(hud_window->impl,GLFW_RAW_MOUSE_MOTION,GLFW_TRUE);
}

void window_fromsettings() {
Expand Down

0 comments on commit 931d1a4

Please sign in to comment.