Examples: Comments about invalid mouse pos.

This commit is contained in:
omar
2017-12-29 15:03:36 +01:00
parent 4fbdb50dca
commit 9f8632b131
6 changed files with 6 additions and 6 deletions

View File

@ -393,7 +393,7 @@ void ImGui_ImplGlfwGL3_NewFrame()
{
double mouse_x, mouse_y;
glfwGetCursorPos(g_Window, &mouse_x, &mouse_y);
io.MousePos = ImVec2((float)mouse_x, (float)mouse_y); // Get mouse position in screen coordinates (set to -1,-1 if no mouse / on another screen, etc.)
io.MousePos = ImVec2((float)mouse_x, (float)mouse_y);
}
}
else