Skip to content

Commit

Permalink
GRAPHICS: Tell DearImGui to not mess with the mouse cursor
Browse files Browse the repository at this point in the history
We're already handling it ourselves. Specifically, we want to not hide
the mouse cursor if no alternative cursor has been defined, which
happens for all the console versions.

In the future, when we're actually using ImGui for stuff, we might
need to see how that'll work out when interacting with ImGui widgets.
  • Loading branch information
DrMcCoy committed Aug 24, 2020
1 parent 429f20a commit bc01c28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ void GraphicsManager::init() {
ImGui::CreateContext();
ImGui::StyleColorsDark();

ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange;
ImGui::GetIO().Fonts->AddFontDefault();
ImGuiFreeType::BuildFontAtlas(ImGui::GetIO().Fonts);

Expand Down

0 comments on commit bc01c28

Please sign in to comment.